Skip to content
OpenAdvisories

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.)

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 bouncycastle 1.77-1 —
Debian 13 bouncycastle 1.77-1 —
Debian 12 bouncycastle No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS bouncycastle No fix yet —
Ubuntu Pro 20.04 LTS bouncycastle No fix yet —
Ubuntu Pro 18.04 LTS bouncycastle No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS bouncycastle No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 bouncycastle +6 1.70-4.amzn2023.0.4 ALAS2023-2024-479

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gradle-8 8.7.0-r1 —
Wolfi rolling gradle-stage0 No fix yet —

Affected packages

Advisories 4

References