CVE-2023-33202
Bouncy Castle Denial of Service (DoS)
Description
Bouncy Castle for Java before 1.73 contains a potential Denial of Service (DoS) issue within the Bouncy Castle org.bouncycastle.openssl.PEMParser class. This class parses OpenSSL PEM encoded streams containing X.509 certificates, PKCS8 encoded keys, and PKCS7 objects. Parsing a file that has crafted ASN.1 data through the PEMParser causes an OutOfMemoryError, which can enable a denial of service attack.
Affected Maven artifacts (9)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bcpkix-jdk18on | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-ext-jdk15on | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-ext-jdk16 | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-jdk14 | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-jdk15 | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-jdk15on | * | - |
| org.bouncycastle » bcprov-jdk15to18 | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-jdk16 | < 1.73 | 1.73 |
| org.bouncycastle » bcprov-jdk18on | < 1.73 | 1.73 |
Blast radius
72% of the dependent artifacts (39,690) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 162,927 |
| 2 hops | 943,133 |
| 3 hops | 1,582,842 |
| 4 hops | 1,309,142 |
| 5 hops | 762,443 |
| 6 hops | 377,239 |
Most used dependents
- org.testcontainers » testcontainers4,109 usages
- org.apache.poi » poi-ooxml3,690 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- com.diffplug.spotless » spotless-maven-plugin2,873 usages
- org.bouncycastle » bcpkix-jdk15on2,867 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- org.eclipse.jgit » org.eclipse.jgit2,222 usages
- com.android.tools.build » gradle2,197 usages
- org.bouncycastle » bcpkix-jdk18on2,109 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-33202
- Webhttps://github.com/bcgit/bc-java/commit/0c576892862ed41894f49a8f639112e8d66d229c
- Webhttps://bouncycastle.org
- Packagehttps://github.com/bcgit/bc-java
- Webhttps://github.com/bcgit/bc-java/wiki/CVE-2023-33202
- Webhttps://security.netapp.com/advisory/ntap-20240125-0001
