Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach CXF STS / STSTokenValidator endpoint
-
ExploitCraft token colliding with cached 32-bit hash
-
ExecutionPass validation via weak-hash cache hit
-
ImpactImpersonate user and obtain STS-signed tokens
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Irreversible hash functions
|
| Exploitation Conditions | Exploitation requires the target application to use Apache CXF's STSTokenValidator or its Security Token Service (STS) with the validated-token cache enabled (WS-Security/WS-Trust token validation or renewal flows). The attacker must craft a token (UsernameToken or self-signed SAML Assertion) whose Java Arrays.hashCode/hashCode() value collides with an entry already present in that cache, so a legitimately validated token for the target identity must already be cached - a meaningful limiting factor. Deployments of Apache CXF that do not perform STS/STSTokenValidator-based token validation or that do not cache validated tokens are not exploitable. The weak 32-bit hash space makes the collision itself computationally feasible, but success is gated on the cache state above. Fixed in 4.2.4, 4.1.9, and 3.6.13. |
| Impact | Signals conflict and must be weighed together rather than taken from the headline score. The CVSS 3.1 base score is 9.1 (Critical) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, implying a remote, unauthenticated, low-complexity authentication bypass - a genuinely severe primitive (CWE-328, use of a weak non-cryptographic hash). Against that, EPSS is only 0.17% (6th percentile), there is no CISA KEV listing, and no public exploit code was identified in the provided sources, so exploitation is currently theoretical rather than observed. No SSVC decision framework data (exploitation/automatable/technical-impact) was supplied, so that dimension cannot be cross-referenced. The CVSS AC:L rating is arguably optimistic: real-world exploitation depends on CXF being deployed with STSTokenValidator or the STS using token caching AND on a legitimate validated token already residing in the cache to collide against - conditions not reflected in the base vector. Net assessment: this is a real, patch-worthy priority specifically for deployments using Apache CXF WS-Trust/STS token validation or renewal, but the low EPSS, absent KEV/POC, and feature-specific preconditions mean it is not yet broad-exploitation risk; environments not using STS token caching face substantially lower practical risk than the 9.1 suggests. |
| Exploit ScenarioDerived | An attacker crafts a token - for example a UsernameToken or a self-signed SAML assertion - whose 32-bit Java hashCode collides with a token already cached as validated by CXF's STSTokenValidator or STS. CXF treats the cache hit as proof the token was validated and accepts it without password validation, signature trust verification, or an STS call, letting the attacker authenticate as another user and, via STS validation/renewal, obtain STS-signed tokens for that identity. No public exploit was identified at time of analysis; per the CVSS vector (PR:N) this is reachable by remote unauthenticated attackers, though a colliding cached entry must exist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 15, 2026
Token validation bypass in Apache CXF's STSTokenValidator and Security Token Service (STS) allows unauthenticated remote attackers to impersonate another user by presenting a forged UsernameToken or self-signed SAML Assertion whose 32-bit Java hash collides with an entry already held in the validated-token cache. Because a cache hit is treated as proof of prior validation, the forged token is accepted without password validation, signature trust verification, or any call to the STS, and can subsequently be exchanged through STS validation or renewal for STS-signed tokens issued for the victim identity. Exploitation is constrained in practice: the target deployment must use STSTokenValidator or STS token validation/renewal with the validated-token cache enabled, and a legitimately validated token for the identity being impersonated must already be present in that cache; no public exploit code has been identified at time of analysis, KEV status is negative, and EPSS is low (~0.17%, 6th percentile), yet the headline CVSS of 9.1 reflects high confidentiality and integrity impact if the preconditions are met. Vendor patches are available in 4.2.4, 4.1.9, and 3.6.13.
Earlier versions of this analysis (1)
Authentication bypass in Apache CXF's WS-Security Security Token Service (STS) path lets an attacker be accepted as another user and obtain STS-signed tokens for that identity, defeating password validation, signature trust verification, and the STS call itself. The issue affects deployments that use STSTokenValidator or the STS with token caching enabled, where a validated token is cached under its non-cryptographic 32-bit Java hashCode (Arrays.hashCode/String.hashCode) and a cache hit is treated as proof of prior validation; a forged UsernameToken or self-signed SAML Assertion whose hash collides with a cached victim entry is therefore accepted. Per the assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N) exploitation is unauthenticated but requires that a legitimately validated token for the targeted identity already reside in the cache, and the crafted token must collide with that specific cached hash rather than any arbitrary value; no public exploit code has been identified and there is no indication of confirmed active exploitation (not listed in CISA KEV) at time of analysis. Vendor-released patches: Apache CXF 4.2.4, 4.1.9, and 3.6.13.
RemediationAI
Apply the vendor-released patches: upgrade Apache CXF to 4.2.4 (4.2.x branch), 4.1.9 (4.0.x/4.1.x branch), or 3.6.13 (3.6.x branch), per the Apache advisory at https://lists.apache.org/thread.html/qthbnsyhqsxhl9p2h9v5dg4mnwv1b9r6 and the oss-security note at https://seclists.org/oss-sec/2026/q4/111. Where an immediate upgrade is not possible, disable the validated-token cache used by STSTokenValidator/STS so every token is re-validated against credentials, SAML signature trust, and the STS itself; the trade-off is added STS load and latency plus a possible dependency on STS availability for each request. If the application does not genuinely need WS-Trust token validation or renewal, disable or block the STS endpoints (including renewal operations) at the network or CXF bus level to remove the attack surface entirely, accepting loss of federated token functionality. Organizations running unsupported CXF branches (for example 3.5.x or earlier, which are not covered by these fix versions) should either migrate to a supported branch or engage commercial extended support such as HeroDevs (https://www.herodevs.com/vulnerability-directory/cve-2026-97468). No vendor patch version should be assumed for branches outside 3.6.13, 4.1.9, and 4.2.4, and because exploitation requires a colliding cached token, monitoring STS logs for anomalous repeated token-validation attempts is a useful but secondary detection measure.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-328 use-of-weak-hash weakness in the Apache CXF WS-Security/WS-Trust token-validation path. Instead of keying its validated-token cache on the full token bytes or a cryptographic digest, STSTokenValidator and the STS cache used the non-cryptographic 32-bit value returned by Java's Arrays.hashCode()/hashCode() and treated any hash match as evidence that the presented token had already been validated. A 32-bit hash space is trivially subject to collision: an attacker who knows or can guess that an identity's token is cached can iterate over candidate UsernameToken or self-signed SAML Assertion payloads until the computed hash matches the cached key, at which point the forged credential inherits the cached token's validated status and bypasses credential checks, SAML signature trust evaluation, and the STS round-trip entirely. The affected CPE is cpe:2.3:a:apache_software_foundation:apache_cxf with no version restriction encoded, and EUVD enumerates the vulnerable ranges as Apache CXF 0 through <3.6.13, 4.0.0 through <4.1.9, and 4.2.0 through <4.2.4. The underlying protocol context is WS-Security UsernameToken and SAML assertion validation, together with WS-Trust STS token issuance and renewal flows, which is why a successful bypass can escalate from simple authentication to obtaining STS-signed tokens for the impersonated identity.
Know when Apache Cxf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Remote unauthenticated reach to the STS endpoint (AV:N/PR:N); 32-bit hash collision is computationally trivial (AC:L); authentication bypass yields impersonation and forged STS tokens (C:H/I:H), no availability impact (A:N).
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
Apache CXF's STSTokenValidator and Security Token Service (STS) cached validated security tokens under a non-cryptographic 32-bit hash of the token (Java Arrays.hashCode/hashCode()), and treated a cache hit as proof that the presented token had already been validated. An attacker could craft a token (for example a UsernameToken or a self-signed SAML Assertion) whose hash collides with a cached entry. The token would then be accepted without password validation, signature trust verification or a call to the STS. This could let the attacker authenticate as another user and, through STS token validation or renewal, obtain STS-signed tokens for that identity. Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue.
Articles & Coverage 3
Executive ViewAI
Apache CXF deployments that rely on Security Token Service (STS) validation or renewal with the validated-token cache enabled face a critical authentication bypass that could let an attacker impersonate another user and obtain valid tokens issued for that identity. This creates a risk of unauthorized access to applications and data, potentially undermining trust in federated authentication across the organization. Although no public exploit identified at time of analysis and exploitation requires specific cache conditions, the severity and potential for lateral movement warrant immediate management attention.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Apache Cxf
View allArbitrary certificate disclosure in Apache CXF's XKMS server lets remote attackers abuse an LDAP injection flaw (CWE-90)
Unsafe deserialization in Apache CXF's JMS transport allows any party able to publish to the service's JMS destination t
Man-in-the-middle attackers can impersonate any TLS server contacted by Apache CXF's optional Netty-based HTTP client tr
XML signature wrapping in Apache CXF's JAX-RS XML Security module allows remote, unauthenticated attackers to have unsig
Trust bypass in Apache CXF's STSTokenValidator allows a remote, unauthenticated attacker to have a forged SAML assertion
A remote, unauthenticated attacker can exhaust server heap memory in Apache CXF by submitting a small (kilobyte-scale) D
Remote code execution in Apache CXF (versions before 3.6.11, 4.0.0-4.1.5, and 4.2.0) arises because the fix for CVE-2025
XML External Entity injection in Apache CXF's WSDL import processing allows attackers who can influence imported WSDL or
Denial of service persists in Apache CXF due to an incomplete remediation of CVE-2026-50645, allowing unauthenticated ne
Authorization scope escalation in Apache CXF's OAuth2 Dynamic Client Registration endpoint allows any registering client
Open redirect in Apache CXF's OIDC relying-party component lets remote, unauthenticated attackers steer users to an atta
XML External Entity injection in Apache CXF's WS-Transfer module exposes SOAP endpoints to server-side file read and int
EUVD-2026-95699
GHSA-hw52-jg43-v867
NVD
CVE.org
EPSS
VulDB
Exploit-DB