CVE-2023-33202

bc-java: Out of memory while parsing ASN.1 crafted data in org.bouncycastle.openssl.PEMParser class

Published Nov 23, 2023 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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. (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.)

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wjxj-5m7g-mg7q Bouncy Castle Denial of Service (DoS)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Bouncycastle fips Java Api
CPEs cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle fips Java Api
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 18, 2025, 4:22 PM
Reserved
May 18, 2023, 12:00 AM
Status
Modified
Published
Nov 23, 2023, 4:15 PM
Modified
Jun 17, 2026, 6:01 AM
Severity
Moderate
Public date
Nov 23, 2023, 12:00 AM