Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97468 Overview
Apache CXF contains an authentication bypass vulnerability in its STSTokenValidator and Security Token Service (STS) components. The affected code cached validated security tokens under a non-cryptographic 32-bit hash derived from Java Arrays.hashCode or hashCode(). A cache hit was treated as proof that the presented token had already been validated. An attacker can craft a UsernameToken or self-signed SAML Assertion whose hash collides with a cached entry. The token is then accepted without password validation, signature trust verification, or any call to the STS. This weakness is tracked under [CWE-328] (Use of Weak Hash).
Critical Impact
Successful exploitation lets an unauthenticated remote attacker impersonate another user and obtain STS-signed tokens for that identity.
Affected Products
- Apache CXF versions prior to 4.2.4
- Apache CXF versions prior to 4.1.9
- Apache CXF versions prior to 3.6.13
Discovery Timeline
- 2026-10-09 - CVE-2026-97468 published to the National Vulnerability Database
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-97468
Vulnerability Analysis
Apache CXF's STS integration maintains a cache of previously validated security tokens to avoid repeated validation round-trips. The cache keys tokens using Java's built-in Arrays.hashCode or Object.hashCode(), both of which return a 32-bit non-cryptographic hash. When an incoming token's hash matches an entry in the cache, CXF skips signature trust checks, password verification, and STS validation calls.
The attack surface is reachable over the network with no authentication or user interaction required. The attacker needs only a valid service endpoint that invokes STSTokenValidator or the STS cache path. Successful exploitation yields identity assumption and the ability to request STS-signed tokens for the impersonated principal.
Root Cause
The root cause is the use of a weak, collision-prone hash function as a security-relevant cache key. A 32-bit hash space is tractable for collision search, and Arrays.hashCode is deterministic and well-documented. Treating a hash-table hit as validation proof conflates identity equality with cryptographic authenticity.
Attack Vector
An attacker constructs a token payload, such as a UsernameToken with arbitrary credentials or a self-signed SAML Assertion, whose byte representation hashes to the same 32-bit value as a legitimate cached token. The attacker submits the forged token to a CXF endpoint that performs cached STS validation. Because the hash collides, CXF returns a cached success result without invoking the STS or verifying signatures. The attacker then uses token renewal or validation flows to obtain STS-signed tokens asserting the victim's identity. See the Apache Mailing List Thread and the OpenWall OSS Security Discussion for the official disclosure.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-97468
Indicators of Compromise
- Successful authentications using UsernameToken or SAML Assertion credentials that do not correspond to any legitimate issuance by the STS.
- STS-issued tokens for principals whose session logs show no matching initial authentication event.
- Repeated submissions of malformed or unusual security tokens to CXF endpoints prior to a successful authentication.
Detection Strategies
- Enable verbose logging on STSTokenValidator and correlate cache-hit events with upstream STS validation calls. Any cache hit without a corresponding prior validated issuance is suspicious.
- Monitor WS-Security endpoints for anomalous token submission patterns, including bursts of structurally similar tokens from a single source.
- Audit SAML Assertion signatures and issuer values on inbound tokens and alert on self-signed assertions reaching production services.
Monitoring Recommendations
- Collect application logs from all Apache CXF services into a centralized SIEM and alert on authentication events lacking a matching STS issuance record.
- Track per-user token issuance rates from the STS and alert when a single identity receives tokens from unexpected service endpoints.
- Instrument the token validation cache to emit metrics on hit rate and unique key count; sudden spikes may indicate collision probing.
How to Mitigate CVE-2026-97468
Immediate Actions Required
- Upgrade Apache CXF to version 4.2.4, 4.1.9, or 3.6.13 depending on your current major branch.
- Inventory all applications and middleware that embed Apache CXF, including transitive dependencies in Java EE and Spring deployments.
- Rotate any STS signing keys and revoke outstanding STS-issued tokens if compromise is suspected.
Patch Information
The Apache CXF project has released fixes in versions 4.2.4, 4.1.9, and 3.6.13. These releases replace the weak hash-based cache key with a validation strategy that no longer accepts hash equality as proof of prior validation. Refer to the Apache Mailing List Thread for the official announcement and change references.
Workarounds
- Disable the STS token validation cache in CXF configuration if upgrading immediately is not feasible.
- Enforce strict signature trust validation on all inbound SAML Assertions and reject self-signed assertions at the gateway.
- Require mutual TLS or an additional transport-layer authentication control in front of CXF endpoints to limit unauthenticated access.
# Example Maven dependency update to a fixed Apache CXF release
# Replace the version in your pom.xml with one of the patched versions
mvn versions:use-dep-version \
-Dincludes=org.apache.cxf:* \
-DdepVersion=4.2.4 \
-DforceVersion=true
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

