Skip to main content

Uncontrolled Resource Consumption


Severity Medium
Score 5.5/10


Bouncy Castle for Java in versions prior to 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 (DoS) attack.

  • LOW
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-400 - Uncontrolled resource consumption

An uncontrolled resource allocation attack (also known as resource exhaustion attack) triggers unauthorized overconsumption of the limited resources in an application, such as memory, file system storage, database connection pool entries, and CPU. This may lead to denial of service for valid users and degradation of the application's functionality as well as that of the host operating system.

Advisory Timeline

  • Published