Improper Validation of Specified Index, Position, or Offset in Input Affecting org.apache.wss4j:wss4j-ws-security-stax 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.55% (44th 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-21716527
  • published26 Oct 2026
  • disclosed30 Sept 2026
  • creditHo1aAs

Introduced: 30 Sep 2026

NewCVE-2026-85532  (opens in a new tab)
CWE-1284  (opens in a new tab)
CWE-1285  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input through the DerivedKeyTokenInputHandler and DerivedKeyUtils.deriveKey in its StAX and common derived-key processing. An attacker can send a crafted WS-Security message with extreme derived-key length or offset values, causing excessive CPU and memory use during key derivation and disrupting message processing.

Notes

  • At the StAX entry point, the attacker supplies the DerivedKeyToken’s wsc:Length and wsc:Offset; the handler converts both with BigInteger.intValue() before derivation, so oversized XML integers are narrowed to signed 32-bit values and can wrap.

CVSS Base Scores

version 4.0
version 3.1