Read the docs

Replay protection bypassed by concurrent copies in Apache WSS4J

Priority LOW 22CWE-367Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

Apache WSS4J from 4.0.0 before 4.0.3, from 3.0.0 before 3.0.7, and before 2.4.5 is affected. A race condition (CWE-367) occurs because WSS4J checks whether a UsernameToken Nonce, Timestamp, signature or SAML 2.0 OneTimeUse assertion ID was already seen, validates the message, and only then remembers the value in separate steps. An attacker who obtains a valid message while it is in transit can send several copies at once so that all of them are accepted, executing the same authenticated request more than once. Deployments with a replay cache configured, as Apache CXF has by default, are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

Apache WSS4J remembers the UsernameToken Nonce, the Timestamp and signature of a signed message, and the ID of a SAML 2.0 "OneTimeUse" assertion, so that a captured message cannot be accepted twice. It checked whether a value had already been seen, validated the message, and only then remembered the value, as two separate steps. If several copies of the same message were processed at the same time, they could all pass the check before any of them was remembered, and all be accepted. An attacker who obtained a valid message before the recipient first processed it could send several copies at once, so that the same authenticated request was executed more than once. Where a UsernameToken is not bound to the message by a signature, the copies could carry different message bodies. The attacker needs to obtain the message while it is still in transit; a message captured after it has been accepted cannot be replayed. Affects deployments with a replay cache configured, as Apache CXF has by default. The value is now checked and remembered in a single atomic step. Custom ReplayCache implementations should override the new ReplayCache.addIfAbsent method with an operation that is atomic in their underlying store. Users are recommended to upgrade to versions 4.0.3 or 3.0.7 or 2.4.5, which fix this issue.

Why it matters now

EPSS 0.00147 3rd percentileScored 2026-11-16
Fix Fixed Apache WSS4J (Apache Software Foundation): 4.0.3, 3.0.7, 2.4.5

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ApacheApache WSS4J4.0.0 to before 4.0.3; 3.0.0 to before 3.0.7; before 2.4.54.0.3, 3.0.7, 2.4.5Patch availableCNA
  • Apache WSS4J VendorApache Affected 4.0.0 to before 4.0.3; 3.0.0 to before 3.0.7; before 2.4.5 Fixed in 4.0.3, 3.0.7, 2.4.5 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:apache:wss4j:*:*:*:*:*:*:*:*——Apache
  • cpe:2.3:a:apache:wss4j:*:*:*:*:*:*:*:* Versions — — ·Apache

Remediation

Upgrade Apache WSS4J to version 4.0.3, 3.0.7 or 2.4.5. Custom ReplayCache implementations should override the new ReplayCache.addIfAbsent method with an operation that is atomic in their underlying store.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA Apache WSS4J (Apache Software Foundation) Fixed in 4.0.3, 3.0.7, 2.4.5

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-115690
  2. 2026-11-16 Alias added: GHSA-cv54-5mp3-5jf6

References

  • TI-2025-18529 Path equivalence in Apache Tomcat allows code execution via PUT KEVCVSS 3.1CRITICAL 10.0
  • TI-2024-30292 Forced browsing in Apache OFBiz bypasses controller-view authorization KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-26062 Incorrect authorization in Apache OFBiz exposes screen rendering code KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-21190 Path traversal in Apache OFBiz leads to remote code execution KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-18186 Remote command execution in Apache HugeGraph-Server via Gremlin KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-25106 Apache ActiveMQ OpenWire deserialization allows remote code execution KEVCVSS 3.1CRITICAL 10.0
See all 4172 →

Sources