CVE-2005-4849: Derby Apache Derby Exposes User And Vulnerability
MODERATECVE-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
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.
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.1.2.1</version>
</dependency>
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
CVE-2005-4849 Affected Derby Versions
1 component(s)| 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?
Which Derby versions are affected?
What version fixes CVE-2005-4849?
Is derby affected?
What CWE is associated with CVE-2005-4849?
How can I check Maven dependencies for CVE-2005-4849?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}