CRITICAL 9.8

CVE-2018-1000613

Deserialization of Untrusted Data in Bouncy castle

Description

Legion of the Bouncy Castle Java Cryptography APIs starting in version 1.57 and prior to version 1.60 contains a CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in XMSS/XMSS^MT private key deserialization that can result in Deserializing an XMSS/XMSS^MT private key can result in the execution of unexpected code. This attack appear to be exploitable via A handcrafted private key can include references to unexpected classes which will be picked up from the class path for the executing application.

This vulnerability appears to have been fixed in 1.60 and later.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.bouncycastle » bcprov-jdk15on
>= 1.57, < 1.60
1.60

Blast radius

1affected artifacts
5affected versions
5,306dependent artifacts (est.)
84,930dependent versions

32% of the dependent artifacts (1,734) still pull an affected version in their latest release.

DepthDependent versions
Direct
6,289
2 hops
22,754
3 hops
26,525
4 hops
17,455
5 hops
7,337
6 hops
4,570

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.