CVE-2009-4269: Derby Use Of Password Hash With Vulnerability

MODERATE
Advisory Identifier: GHSA-fh32-35w2-rxcc
CWE-916
Published
Advisory Summary

CVE-2009-4269 is a MODERATE use of password hash with vulnerability (CWE-916: Use of Password Hash With Insufficient Computational Effort) affecting Derby libraries in the Maven ecosystem. The issue involves use of password hash with insufficient computational effort in apache derby. Remediation is available by upgrading affected packages to version 10.6.1.0.

CVE-2009-4269 at a Glance

CVE Identifier CVE-2009-4269
GHSA Identifier GHSA-fh32-35w2-rxcc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-916: Use of Password Hash With Insufficient Computational Effort
Affected Product Derby
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2009-4269

To remediate this vulnerability, upgrade all affected Derby dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.derby:derby fixed: 10.6.1.0
<dependency>
    <groupId>org.apache.derby</groupId>
    <artifactId>derby</artifactId>
    <version>10.6.1.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.derby

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2009-4269, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.derby

Analyze the terminal output to locate any version of Derby in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.6.1.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.derby command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-916: Use of Password Hash With Insufficient Computational Effort, where the product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive. In Derby, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2009-4269 Affected Derby Versions

1 component(s)
Fixed Versions:
10.6.1.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.derby:derby
Maven
< 10.6.1.0
10.6.1.0

References

Frequently Asked Questions

What is CVE-2009-4269?
CVE-2009-4269 is a security vulnerability in Derby involving Use of Password Hash With Insufficient Computational Effort in Apache Derby under CWE-916: Use of Password Hash With Insufficient Computational Effort.
Which Derby versions are affected?
Affected versions include releases prior to 10.6.1.0 across affected packages: org.apache.derby:derby.
What version fixes CVE-2009-4269?
Upgrading to 10.6.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is derby affected?
Yes, org.apache.derby:derby is affected in releases prior to 10.6.1.0. Upgrade your dependency to 10.6.1.0 or later.
What CWE is associated with CVE-2009-4269?
CVE-2009-4269 is classified under CWE-916: Use of Password Hash With Insufficient Computational Effort (The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.).
How can I check Maven dependencies for CVE-2009-4269?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.derby'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fh32-35w2-rxcc",
  "modified" : "2022-06-17T22:23:08Z",
  "published" : "2022-05-02T03:53:13Z",
  "aliases" : [ "CVE-2009-4269" ],
  "summary" : "Use of Password Hash With Insufficient Computational Effort in Apache Derby",
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.derby:derby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.6.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.5.3.01"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2009-4269"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/178ca0cfb796b5a5788d25ded0978773ea254332"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/23f97a597716ee5b08eff698b7177850ad8e1294"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/3b82686e32a8d4fa2027350279104f9b243b35d6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/60edeb0cb29daf9d28ece1863db779c1af5a3f62"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/8c305e2f3fad1c3a4f98c06c7f2b53e2bfdd308c"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/DERBY-4483"
  }, {
    "type" : "WEB",
    "url" : "http://db.apache.org/derby/releases/release-10.6.1.0.cgi#Fix+for+Security+Bug+CVE-2009-4269"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=apache-db-general&m=127428514905504&w=1"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/cpujan2011-194091.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-916" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-17T22:23:08Z",
    "nvd_published_at" : "2010-08-16T20:00:00Z"
  }
}