CVE-2015-0886: Jbcrypt Integer Overflow Or Wraparound Vulnerability
MODERATECVE-2015-0886 is a MODERATE integer overflow or wraparound vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Jbcrypt libraries in the Maven ecosystem. The issue involves integer overflow or wraparound in jbcrypt. Remediation is available by upgrading affected packages to version 0.4.
CVE-2015-0886 at a Glance
How to Fix CVE-2015-0886
To remediate this vulnerability, upgrade all affected Jbcrypt 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.mindrot</groupId>
<artifactId>jbcrypt</artifactId>
<version>0.4</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.mindrot
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2015-0886, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.mindrot
Analyze the terminal output to locate any version of Jbcrypt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.mindrot 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Jbcrypt, 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-2015-0886 Affected Jbcrypt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.mindrot:jbcrypt
|
Maven |
< 0.4
|
0.4
|
References
Frequently Asked Questions
What is CVE-2015-0886?
Which Jbcrypt versions are affected?
What version fixes CVE-2015-0886?
Is jbcrypt affected?
What CWE is associated with CVE-2015-0886?
How can I check Maven dependencies for CVE-2015-0886?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9h6p-92jq-888x",
"modified" : "2022-07-06T20:28:22Z",
"published" : "2022-05-13T01:05:53Z",
"aliases" : [ "CVE-2015-0886" ],
"summary" : "Integer Overflow or Wraparound in JBCrypt",
"details" : "Integer overflow in the crypt_raw method in the key-stretching implementation in JBCrypt before 0.4 makes it easier for remote attackers to determine cleartext values of password hashes via a brute-force attack against hashes associated with the maximum exponent.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mindrot:jbcrypt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-0886"
}, {
"type" : "WEB",
"url" : "https://bugzilla.mindrot.org/show_bug.cgi?id=2097"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rbd23e3ac8113b4da0a025c0e45170b6ec317383a1cf06090c2c717aa@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rd5c2256b8dc9935e4bb5e9be90adce58408054bb42523730a40c5548@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/re330cfe9e5d84e3f7da8ace23ec32f38cb3fbd328bf177badd7ad942@%3Ccommits.cassandra.apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN77718330/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2015-000033"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-March/151496.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-March/151786.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-March/151797.html"
}, {
"type" : "WEB",
"url" : "http://www.mindrot.org/projects/jBCrypt/news/rel04.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-190" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T20:28:22Z",
"nvd_published_at" : "2015-02-28T02:59:00Z"
}
}