Intel

AIKIDO-2026-812524

cxf-rt-ws-security is vulnerable to Race Condition

CVE-2026-97791Published Nov 2, 2026
November 2, 2026

75

CVE Score

High

Race Condition

Are you affected? Scan for Free

TL;DR

STSTokenValidator kept one STSSamlAssertionValidator in a field shared by all requests and trusted its recorded signature-verification result, so a remote unauthenticated client could send a forged SAML assertion that was accepted as trusted while a concurrent legitimate request was being validated, without the assertion ever reaching the STS. This only happens when a service validates inbound SAML tokens with STSTokenValidator and leaves alwaysValidateToSts unset. The fix constructs a new STSSamlAssertionValidator for each request, so no verification state is shared.

How do I fix this?

Upgrade the cxf-rt-ws-security package to a patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and configure STSTokenValidator for inbound SAML tokens without alwaysValidateToSts set, exposing it to unauthenticated remote clients.

Versions

2.0.6 - 3.6.12

Fixed in 3.6.13

4.0.0 - 4.1.8

Fixed in 4.1.9

4.2.0 - 4.2.3

Fixed in 4.2.4

Background info

cxf-rt-ws-security is vulnerable to Race Condition in versions 2.0.6 - 3.6.12, 4.0.0 - 4.1.8 and 4.2.0 - 4.2.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea