{"id":"CVE-2026-50631","aliases":["CVE-2026-50631","GHSA-83r6-96m8-r52p"],"related":[],"kind":"vulnerability","state":"published","title":"Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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, which fixes this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una condición de carrera en AbstractOAuthDataProvider permite que solicitudes concurrentes que utilizan el mismo Refresh Token eludan la semántica de un solo uso y generen múltiples Access Tokens válidos, cuando ’recycleRefreshTokens’ está configurado como falso. Un Refresh Token filtrado puede ser reproducido concurrentemente por múltiples atacantes o hilos. Se recomienda a los usuarios actualizar a las versiones 4.2.2 o 4.1.7, que corrige este problema.","source":"nvd"}],"published":"2026-06-12T08:59:40.200Z","modified":"2026-11-05T15:55:53.110Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"type":"semver","introduced":"4.2.0","fixed":"4.2.2","status":"affected"},{"type":"semver","introduced":"4.0.0","fixed":"4.1.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6.12","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache CXF","package":"org.apache.cxf:cxf-rt-rs-security-oauth2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.2.2"}],"ecosystem":"Maven","package":"org.apache.cxf:cxf-rt-rs-security-oauth2","purl":"pkg:maven/org.apache.cxf/cxf-rt-rs-security-oauth2","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.7"}],"ecosystem":"Maven","package":"org.apache.cxf:cxf-rt-rs-security-oauth2","purl":"pkg:maven/org.apache.cxf/cxf-rt-rs-security-oauth2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.6.12"},{"status":"affected","introduced":"4.0.0","fixed":"4.1.7"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.2"}],"vendor":"apache","product":"cxf","cpe":"cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/11/8","tags":["mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50631","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/cxf","tags":["package"],"sources":["ghsa"]}],"credits":["Guanping Zhang reported this vulnerability."],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-12T14:03:56.077Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50631","url":"https://www.cve.org/CVERecord?id=CVE-2026-50631","licence":"CVE Terms of Use","modified":"2026-08-07T12:43:22.536Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-83r6-96m8-r52p","url":"https://github.com/advisories/GHSA-83r6-96m8-r52p","licence":"CC-BY-4.0","modified":"2026-08-20T18:48:08.279Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50631","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50631","licence":"Public domain","modified":"2026-11-05T15:55:53.110Z"}],"updatedAt":"2026-11-25T22:59:24.497Z","epss":{"score":0.00273,"percentile":0.2111,"date":"2026-12-01T12:00:22.000Z"}}