{"id":"CVE-2026-50631","state":"PUBLISHED","title":"Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing","description":"A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue.","publishedAt":"2026-06-12T08:59:40.200Z","updatedAt":"2026-08-07T12:43:22.536Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache CXF"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache CXF","packageName":"org.apache.cxf:cxf-rt-rs-security-oauth2","defaultStatus":"unaffected","versions":[{"version":"4.2.0","status":"affected","lessThan":"4.2.2","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.1.7","versionType":"semver"},{"version":"0","status":"affected","lessThan":"3.6.12","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"}],"references":["https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8","http://www.openwall.com/lists/oss-security/2026/06/11/8"],"weaknesses":["CWE-367"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50631.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50631","state":"PUBLISHED","datePublished":"2026-06-12T08:59:40.200Z","dateUpdated":"2026-08-07T12:43:22.536Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2026-06-05T11:02:05.432Z"},"containers":{"cna":{"title":"Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing","descriptions":[{"lang":"en","value":"A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache CXF","packageName":"org.apache.cxf:cxf-rt-rs-security-oauth2","defaultStatus":"unaffected","versions":[{"version":"4.2.0","status":"affected","lessThan":"4.2.2","versionType":"semver"},{"version":"4.0.0","status":"affected","lessThan":"4.1.7","versionType":"semver"},{"version":"0","status":"affected","lessThan":"3.6.12","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"}],"references":[{"url":"https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"text":"low"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","description":"CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2026-08-07T12:43:22.536Z"},"credits":[{"lang":"en","type":"finder","value":"Guanping Zhang reported this vulnerability."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/06/11/8"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-06-12T09:28:09.644Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.4,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-06-12T14:03:56.077000Z","id":"CVE-2026-50631","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-12T14:04:22.866Z"}}]}}}