All reports
High

wss4j: Apache WSS4J: Denial of Service via integer overflow in certificate parsing

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-95616

Probability of exploitation in the next 30 days: 0.41%

FIRST EPSS · 2026-11-19

Description

An integer overflow in WSS4J's DER bounds check lets an oversized allocation pass validation. An unauthenticated attacker can send a SOAP message carrying an X.509 certificate whose SubjectKeyIdentifier extension declares a length of 0x7FFFFFFF; WSS4J decodes this while resolving the signature's key reference, before the message is authenticated, so an eleven-byte extension triggers a 2 GB allocation. Repeated requests exhaust server memory. Users are recommended to upgrade to versions 4.0.2 or 3.0.6 or 2.4.4, which fix this issue.

A flaw was found in Apache WSS4J. An unauthenticated remote attacker can cause a Denial of Service (DoS) by sending a crafted Simple Object Access Protocol (SOAP) message containing a digital certificate with an oversized extension length. Due to an integer overflow during certificate bounds checking, the application attempts an excessively large memory allocation before verifying the message's authenticity. Processing multiple malicious requests can rapidly exhaust available server memory, causing the service to become unresponsive or crash.