medium5.5
CVE-2023-33202
Bouncy Castle Denial of Service (DoS)
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.bouncycastle:bcprov-jdk18on | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcpkix-jdk18on | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-ext-jdk15on | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-ext-jdk16 | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-jdk14 | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-jdk15 | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-jdk15to18 | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-jdk16 | < 1.73 | 1.73 |
| maven | org.bouncycastle:bcprov-jdk15on | < 1.70 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Bouncycastle | Bouncy Castle For Java | before 1.73 |
| Bouncycastle | Fips Java Api | before 1.0.2.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://bouncycastle.org
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902023%E2%80%9033202
- https://github.com/bcgit/bc-java/wiki/CVE-2023-33202
- https://security.netapp.com/advisory/ntap-20240125-0001/
- https://github.com/advisories/GHSA-wjxj-5m7g-mg7q
- https://nvd.nist.gov/vuln/detail/CVE-2023-33202
- https://security.netapp.com/advisory/ntap-20240125-0001
- https://github.com/bcgit/bc-java/commit/0c576892862ed41894f49a8f639112e8d66d229c