Red Hat VEX
RHVEX-CVE-2025-8885
bouncycastle: Bouncy Castle denial of service parsing ASN.1 Object Identifiers
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | resteasy | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | resteasy-javadoc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | jmc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-client | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-core | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-jackson2-provider | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-servlet-initializer | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | resteasy | All versions, no fix (fix deferred) |