CVE-2026-95616

Apache WSS4J: Unauthenticated denial of service via integer overflow in DER parsing of X.509 certificate extensions

Published Sep 30, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An integer overflow in WSS4J’s DER bounds check allows an unauthenticated attacker to send a SOAP message containing an X.509 certificate with a SubjectKeyIdentifier extension length of 0x7FFFFFFF. WSS4J decodes this extension while resolving a signature key reference, before any authentication takes place, and allocates an 2 GB buffer. Repeated requests exhaust server memory, resulting in a denial of service.

Affected Systems

The vulnerability affects Apache WSS4J versions prior to 4.0.2, 3.0.6, and 2.4.4. Any deployment using these older releases is exposed. The fix is applied in the listed newer versions.

Risk and Exploitability

The attack requires only network access and no authentication; the exploit path is straightforward enough to be automated. Although the EPSS score is not available, the impact of exhausting memory is significant, and the vulnerability is not listed in CISA’s KEV catalog. The primary risk is a remote denial of service that can be triggered by a single malformed SOAP request, potentially affecting all users of the vulnerable WSS4J instance.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Apache WSS4J library to a fixed release—4.0.2, 3.0.6, or 2.4.4—depending on your version.
  • If an immediate upgrade is not possible, protect the service by restricting the size of incoming SOAP messages and rate‑limiting requests to the WSS4J endpoint to prevent memory exhaustion.
  • Implement ASN.1 DER validation to reject certificates that advertise excessively large extension lengths before parsing to provide a temporary mitigation until the library is updated.

Generated by OpenCVE AI on September 30, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache wss4j
CPEs cpe:2.3:a:apache:wss4j:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache wss4j
Type Values Removed Values Added
Weaknesses CWE-680
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-680
Type Values Removed Values Added
Weaknesses CWE-190
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
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.
Title Apache WSS4J: Unauthenticated denial of service via integer overflow in DER parsing of X.509 certificate extensions
References
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 30, 2026, 1:17 PM
Reserved
Sep 22, 2026, 10:04 AM
Status
Analyzed
Published
Sep 30, 2026, 1:17 PM
Modified
Oct 6, 2026, 5:21 PM