ADVISORIES

Red Hat VEX

RHVEX-CVE-2025-8885

bouncycastle: Bouncy Castle denial of service parsing ASN.1 Object Identifiers

Moderate No fix available CVE-2025-8885

Details

A resource exhaustion flaw has been discovered in the Bouncy Castle for Java library. The flaw exists because there was no practical limit on the size of an encoded ASN.1 Object Identifier (OID), beyond the maximum size of an ASN1Object. While technically valid, this could be exploited by an attacker to create excessively large OIDs, which would cause uncontrolled memory consumption and lead to a denial of service (DoS) attack.

In following the practice of other providers, we have adopted a limit of 4096 bytes on the size of an encoded identifier and a cap of 16385 characters on an identifier string.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8resteasy
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:8resteasy-javadoc
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9jmc
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9pki-resteasy-client
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9pki-resteasy-core
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9pki-resteasy-jackson2-provider
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9pki-resteasy-servlet-initializer
All versions, no fix (fix deferred)
Red Hat:enterprise_linux:9resteasy
All versions, no fix (fix deferred)

References