The password hash generation algorithm in the BUILTIN authentication functionality for Apache Derby before 10.6.1.0 performs a transformation that reduces the size of the set of inputs to SHA-1, which produces a small search space that makes it easier for local and possibly remote attackers to crack passwords by generating hash collisions, related to password substitution.
https://issues.apache.org/jira/browse/DERBY-4483
http://www.vupen.com/english/advisories/2011/0149
http://www.securitytracker.com/id?1024977
http://www.securityfocus.com/bid/42637
http://www.oracle.com/technetwork/topics/security/cpujan2011-194091.html
http://secunia.com/advisories/42970
http://secunia.com/advisories/42948
http://marcellmajor.com/derbyhash.html
http://marc.info/?l=apache-db-general&m=127428514905504&w=1
http://db.apache.org/derby/releases/release-10.6.1.0.cgi#Fix+for+Security+Bug+CVE-2009-4269