Skip to content
VulniPulse
High 2 vendors · 2 advisories

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

CVE-2026-97791 key facts

CISA KEV
Not listed (catalogue checked )
Highest advisory rating
High
CVSS base score
7.5 (Apache), 7.4 (Red Hat)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · base score 7.5, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: none. Integrity impact: none. Availability impact: high.
Weakness
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
EPSS
0.30% chance of exploitation in the next 30 days (23rd percentile). FIRST EPSS, .
CISA SSVC
Exploitation: none observed. Automatable: yes. Technical impact: partial. CISA, .
Fixed releases
  • Apache: 4.2.4, 4.1.9, 3.6.13
  • Red Hat: 4.2.4, 4.1.9, 3.6.13, org.apache.cxf/cxf-rt-ws-security:4.1.9.rhbac-redhat-00001, RHSA-2026:95622
Vendor advisories
2 from Apache, Red Hat
Assigned by
apache (CNA)
CVE record published
Listed by VulniPulse
Record changed

Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-97791; each belongs to its advisory, not to every product listed. How records are collected and checked.

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.

Text from the CVE.org record (apache).

How do I fix CVE-2026-97791?

Upgrade to a fixed release named by the vendor:

  • Apache: 4.2.4, 4.1.9, 3.6.13
  • Red Hat: 4.2.4, 4.1.9, 3.6.13, org.apache.cxf/cxf-rt-ws-security:4.1.9.rhbac-redhat-00001, RHSA-2026:95622
  • Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue. (Apache)
  • As a workaround, configure STSTokenValidator with alwaysValidateToSts enabled so that every incoming SAML token is always sent to the Security Token Service (STS) for validation rather than being accepted based on the local certificate-trust check; services configured this way are not exposed to the shared validation state. No other mitigation is currently available beyond this configuration change and applying updates for affected products once fixed packages are released. (Red Hat)

Vendor advisories for CVE-2026-97791

Apache

1 advisory
  • Advisory severityHigh7.5

    High [CVE-2026-97791] In Apache CXF, STSTokenValidator checks whether a SAML assertion is signed by a trusted certificate before deciding to send it to the STS

    CVE-2026-97791Source published Source updated

    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.

    Related products — impact not confirmed
    • Apache CXF
    Source-reported affected versions
    • Apache CXF 4.2.0 before 4.2.4
    • Apache CXF 4.0.0 before 4.1.9
    • Apache CXF before 3.6.13
    Source-reported fixed versions
    • 4.2.4
    • 4.1.9
    • 3.6.13
    Mitigation guidance
    • Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue.

Red Hat

1 advisory
  • Advisory severityHigh7.4

    High [CVE-2026-97791] Authentication bypass via shared token validation state

    CVE-2026-97791Source published Source updated

    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. This vulnerability allows an authentication bypass when validating Security Assertion Markup Language (SAML) tokens. A flaw was found…

    Affected products in this advisory
    • Red Hat Build of Apache Camel 3.33.4.SP3
    • Red Hat build of Apache Camel 4 for Quarkus 3
    • Red Hat build of Apache Camel for Spring Boot 4
    • Red Hat JBoss Enterprise Application Platform 7

    2 more entries in the full advisory.

    Source-reported affected versions
    Affected-version details not available in this record.
    Source-reported fixed versions
    • 4.2.4
    • 4.1.9
    • 3.6.13
    • org.apache.cxf/cxf-rt-ws-security:4.1.9.rhbac-redhat-00001

    1 more entries in the full advisory.

    Mitigation guidance
    • As a workaround, configure STSTokenValidator with alwaysValidateToSts enabled so that every incoming SAML token is always sent to the Security Token Service (STS) for validation rather than being accepted based on the local certificate-trust check; services configured this way are not exposed to the shared validation state. No other mitigation is currently available beyond this configuration change and applying updates for affected products once fixed packages are released.

References

Timeline

  1. CVE record published
  2. First vendor advisory listed by VulniPulse
  3. CVE record last updated

All Apache advisories

Get an email when Apache publishes the next one.

See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about Apache