CVE-2005-4849: Derby Apache Derby Exposes User And Vulnerability

MODERATE
Advisory Identifier: GHSA-rp7r-79rm-2758
CWE-200
Published
Advisory Summary

CVE-2005-4849 is a MODERATE apache derby exposes user and vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Derby libraries in the Maven ecosystem. The issue involves apache derby exposes user and password attributes. Remediation is available by upgrading affected packages to version 10.1.2.1.

CVE-2005-4849 at a Glance

CVE Identifier CVE-2005-4849
GHSA Identifier GHSA-rp7r-79rm-2758
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Derby
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2005-4849

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.1.2.1
<dependency>
    <groupId>org.apache.derby</groupId>
    <artifactId>derby</artifactId>
    <version>10.1.2.1</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-2005-4849, 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.1.2.1), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

Apache Derby before 10.1.2.1 exposes the (1) user and (2) password attributes in cleartext via (a) the RDBNAM parameter of the ACCSEC command and (b) the output of the DatabaseMetaData.getURL function, which allows context-dependent attackers to obtain sensitive information.

CVE-2005-4849 Affected Derby Versions

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

References

Frequently Asked Questions

What is CVE-2005-4849?
CVE-2005-4849 is a security vulnerability in Derby involving Apache Derby exposes user and password attributes under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Derby versions are affected?
Affected versions include releases prior to 10.1.2.1 across affected packages: org.apache.derby:derby.
What version fixes CVE-2005-4849?
Upgrading to 10.1.2.1 (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.1.2.1. Upgrade your dependency to 10.1.2.1 or later.
What CWE is associated with CVE-2005-4849?
CVE-2005-4849 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2005-4849?
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-rp7r-79rm-2758",
  "modified" : "2022-05-25T20:21:39Z",
  "published" : "2022-05-01T02:31:27Z",
  "aliases" : [ "CVE-2005-4849" ],
  "summary" : "Apache Derby exposes user and password attributes",
  "details" : "Apache Derby before 10.1.2.1 exposes the (1) user and (2) password attributes in cleartext via (a) the RDBNAM parameter of the ACCSEC command and (b) the output of the DatabaseMetaData.getURL function, which allows context-dependent attackers to obtain sensitive information.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.derby:derby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.1.2.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.1.1.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2005-4849"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/09a7325f75a4f96a7735e46c9723930f88ea2613"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/82d721fd53e30dbb86d6d742c085030985091968"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/derby/commit/fd24a7590ff5426bac68303fbeca07dbc5067412"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/derby"
  }, {
    "type" : "WEB",
    "url" : "http://db.apache.org/derby/releases/release-10.1.2.1.html"
  }, {
    "type" : "WEB",
    "url" : "http://issues.apache.org/jira/browse/DERBY-530"
  }, {
    "type" : "WEB",
    "url" : "http://issues.apache.org/jira/browse/DERBY-559"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=289672"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-25T20:21:39Z",
    "nvd_published_at" : "2005-12-31T05:00:00Z"
  }
}