Resource exhaustion in Bouncycastle Bouncy Castle For Java

CVE-2023-33202

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. (For users of the FIPS Java API: BC-FJA 1.0.2.3 and earlier are affected; BC-FJA 1.0.2.4 is fixed.)

Vulnerability class: DoS (Denial of Service)

EPSS: 0.009 (58.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2023-33202?
CVE-2023-33202 is a medium-severity vulnerability in Bouncycastle Bouncy Castle For Java, classified under Uncontrolled Resource Consumption. CVSS score: 5.5/10. Published 2023-11-23.
How severe is CVE-2023-33202?
Medium severity. CVSS v3 base score is 5.5 out of 10.
Is CVE-2023-33202 known to be exploited?
4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.