Skip to content
Heist/ feed
Back to feed
Critical

Apache CXF: Authentication bypass via weak cache keys for validated STS tokens

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-97468
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 06:53 UTC · Revision 1

Source evidence

Apache CXF: Authentication bypass via weak cache keys for validated STS tokens

core-osv · Original source

Published 9 Oct 2026, 10:18 UTC

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.

osv:CVE-2026-97468
Complete source record
{
  "id": "094ba40aa806b739f50d085813d6d58eca91ce7056f3e6370d3990ce8c792b67",
  "url": "https://osv.dev/vulnerability/CVE-2026-97468",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache CXF: Authentication bypass via weak cache keys for validated STS tokens",
    "summary": "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.",
    "evidence": "osv:CVE-2026-97468",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-97468",
      "aliases": [
        "CVE-2026-97468"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/cxf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8999af05d26ef2e63dc4c77a798595e2a53435ad"
                },
                {
                  "introduced": "02310e95fe74c0c031f540f3284e4a9bd856ced2"
                },
                {
                  "fixed": "043829b193a6ead389864e636a07ddf6bfa2ca8a"
                },
                {
                  "introduced": "04ccbfd709eef8f4af53d6237514fbe9db7ea81f"
                },
                {
                  "fixed": "5e324f121104cc76af1b8f3ec0d1a20ef9e98c3b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.6.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.1.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.2.0"
                      },
                      {
                        "fixed": "4.2.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cxf-3.6.12",
            "cxf-4.1.8",
            "cxf-4.2.3",
            "cxf-4.1.7",
            "cxf-4.2.2",
            "cxf-3.6.11",
            "cxf-4.1.6",
            "cxf-4.2.1",
            "cxf-3.6.10",
            "cxf-4.1.5",
            "cxf-4.2.0",
            "cxf-3.6.9",
            "cxf-4.1.4",
            "cxf-3.6.8",
            "cxf-4.1.3",
            "cxf-3.6.7",
            "cxf-4.1.2",
            "cxf-3.6.6",
            "cxf-4.1.1",
            "cxf-4.1.0",
            "cxf-3.6.5",
            "cxf-3.6.4",
            "cxf-3.6.3",
            "cxf-4.0.4",
            "cxf-4.0.3",
            "cxf-3.6.2",
            "cxf-4.0.2",
            "cxf-3.6.1",
            "cxf-4.0.1",
            "cxf-3.6.0",
            "cxf-4.0.0",
            "cxf-3.5.0",
            "cxf-3.4.1",
            "cxf-3.4.0",
            "cxf-3.3.3",
            "cxf-3.3.2",
            "cxf-3.3.1",
            "cxf-3.3.0",
            "cxf-3.2.5",
            "cxf-3.2.4",
            "cxf-3.2.3",
            "cxf-3.2.2",
            "cxf-3.2.1",
            "cxf-3.2.0",
            "cxf-3.1.4",
            "cxf-3.1.3",
            "cxf-3.1.2",
            "cxf-3.1.1",
            "cxf-3.1.0",
            "cxf-3.0.0",
            "cxf-3.0.0-milestone2",
            "cxf-2.7.2",
            "cxf-2.7.1",
            "cxf-2.7.0",
            "cxf-2.6.1",
            "cxf-2.6.0",
            "cxf-2.5.1",
            "cxf-2.5.0",
            "cxf-2.4.0",
            "cxf-2.3.0",
            "cxf-2.2.2",
            "cxf-2.2.1",
            "cxf-2.2",
            "cxf-2.1.2",
            "cxf-2.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97468.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.987974962Z",
      "provider": "osv",
      "references": [
        "https://repo.maven.apache.org/maven2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97468.json",
        "https://lists.apache.org/thread.html/qthbnsyhqsxhl9p2h9v5dg4mnwv1b9r6",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-97468"
      ],
      "provider_metadata": {
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.2.0"
                  },
                  {
                    "fixed": "4.2.4"
                  },
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "4.1.9"
                  },
                  {
                    "fixed": "3.6.13"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97468.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97468",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518554,
  "published_at": "2026-10-09T10:18:56.568+00:00"
}