Integer Overflow or Wraparound Affecting org.apache.wss4j:wss4j-ws-security-common package, versions [,2.4.4)[3.0.0,3.0.6)[4.0.0,4.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHEWSS4J-21716582
  • published26 Oct 2026
  • disclosed30 Sept 2026
  • creditUnknown

Introduced: 30 Sep 2026

NewCVE-2026-95616  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade org.apache.wss4j:wss4j-ws-security-common to version 2.4.4, 3.0.6, 4.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the getBytes method in DERDecoder. An unauthenticated attacker can send a SOAP message containing an X.509 certificate whose SubjectKeyIdentifier declares a length of 0x7FFFFFFF; the vulnerable check pos + length > arr.length can overflow, allowing an eleven-byte extension to trigger a 2 GB allocation during signature key-reference resolution, before the message is authenticated. Repeated requests can exhaust server memory and deny service to users.

CVSS Base Scores

version 4.0
version 3.1