HIGH 7.5

CVE-2026-97791

Apache CXF: STSTokenValidator can accept untrusted SAML assertions because it shares validation state between requests

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

In Apache CXF, STSTokenValidator checks whether a SAML assertion is signed by a trusted certificate before deciding to send it to the STS. That result was stored in one object shared by all requests, so one request could read another's result. A remote, unauthenticated attacker could send a forged assertion signed with an untrusted certificate while legitimate requests were being processed, and it could be accepted as trusted without ever reaching the STS. Only services that use STSTokenValidator to validate SAML tokens without alwaysValidateToSts set are affected.  Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.cxf » cxf-rt-ws-securitypreliminary
< 3.6.13>= 4.0.0, < 4.1.9>= 4.2.0, < 4.2.4
3.6.13, 4.1.9, 4.2.4

Blast radius

1affected artifacts
1,228affected versions
2,742dependent artifacts (est.)
116,809dependent versions

67% of the dependent artifacts (1,845) still pull an affected version in their latest release.

DepthDependent versions
Direct
23,264
2 hops
33,421
3 hops
27,906
4 hops
17,722
5 hops
10,622
6 hops
3,874

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorygithub.com
Advisorylists.apache.org
Advisorynvd.nist.gov
Webopenwall.com
Webrepo.maven.apache.org