CVE-2013-1624: Bouncy Castle Improper Input Validation Vulnerability
MODERATECVE-2013-1624 is a MODERATE improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Bouncy Castle libraries in the Maven ecosystem. The issue involves improper input validation in bouncy castle. Remediation is available by upgrading affected packages to version 1.48.
CVE-2013-1624 at a Glance
How to Fix CVE-2013-1624
To remediate this vulnerability, upgrade all affected Bouncy Castle 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.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.48</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.bouncycastle
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2013-1624, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.bouncycastle
Analyze the terminal output to locate any version of Bouncy Castle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.48), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.bouncycastle 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Bouncy Castle, 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-2013-1624 Affected Bouncy Castle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.bouncycastle:bcprov-jdk15on
|
Maven |
< 1.48
|
1.48
|
References
Frequently Asked Questions
What is CVE-2013-1624?
Which Bouncy Castle versions are affected?
What version fixes CVE-2013-1624?
Is bcprov-jdk15on affected?
What CWE is associated with CVE-2013-1624?
How can I check Maven dependencies for CVE-2013-1624?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8353-fgcr-xfhx",
"modified" : "2022-07-08T18:59:52Z",
"published" : "2022-05-14T02:14:04Z",
"aliases" : [ "CVE-2013-1624" ],
"summary" : "Improper Input Validation in Bouncy Castle",
"details" : "The TLS implementation in the Bouncy Castle Java library before 1.48 and C# library before 1.8 does not properly consider timing side-channel attacks on a noncompliant MAC check operation during the processing of malformed CBC padding, which allows remote attackers to conduct distinguishing attacks and plaintext-recovery attacks via statistical analysis of timing data for crafted packets, a related issue to CVE-2013-0169.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.48"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1624"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2013/02/05/24"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0371.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0372.html"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/57716"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/57719"
}, {
"type" : "WEB",
"url" : "http://www.isg.rhul.ac.uk/tls/TLStiming.pdf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-08T18:59:52Z",
"nvd_published_at" : "2013-02-08T19:55:00Z"
}
}