Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-49265

Опубликовано: 29 сент. 2026
Источник: redhat
CVSS3: 6.8
EPSS Низкий

Описание

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 3.0.0 until 4.0.0, OAuthLib's PKCE checks in oauthlib/oauth2/rfc6749/grant_types/authorization_code.py compare attacker-supplied code_verifier values with stored challenges using ordinary string equality in code_challenge_method_plain and code_challenge_method_s256. Because the comparison can return after a length difference or the first mismatching character, repeated token endpoint measurements can reveal common-prefix timing information that could potentially allow recovery of the code_verifier, unauthorized access-token acquisition, and account takeover. Practical exploitation requires an intercepted, single-use authorization code and enough measurements to overcome real-world network noise; the local timing benchmark does not establish practical remote account takeover, so the weakness remains a defense-in-depth concern. This issue is fixed in version 4.0.0.

A flaw was found in oauthlib. A timing side-channel vulnerability in the Proof Key for Code Exchange (PKCE) validation process allows a remote attacker to recover secret verification codes. Because comparison operations do not execute in constant time, an attacker who has intercepted an authorization code can measure response latency differences across repeated requests to infer the expected verification code character-by-character. Successful exploitation allows the attacker to exchange the authorization code for an access token and impersonate the victim user.

Отчет

This vulnerability is rated as having a Moderate impact because successful exploitation requires multiple stringent prerequisites, including intercepting a valid authorization code, measuring high-resolution network response times, and an OAuth server implementation that permits repeated verification attempts without revoking the code. While oauthlib facilitates PKCE validation in OAuth 2.0 deployments across Red Hat environments, the timing discrepancies are minor and highly susceptible to network noise in real-world scenarios. Consequently, extracting secret verifiers remotely presents significant practical hurdles.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Fix deferred
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel9-operatorFix deferred
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Lightspeed Services for Advanced Cluster Managementlightspeed-services-acm/ocp-rules-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-rhel9-operatorFix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-rhel8-operatorFix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorFix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-sandbox-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-to-dataverse-exporter-rhel9Fix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-208
https://bugzilla.redhat.com/show_bug.cgi?id=2550336oauthlib: oauthlib: Timing attack vulnerability in PKCE code_verifier/code_challenge comparison allows authorization code recovery

EPSS

Процентиль: 15%
0.00242
Низкий

6.8 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.8
ubuntu
28 дней назад

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 3.0.0 until 4.0.0, OAuthLib's PKCE checks in oauthlib/oauth2/rfc6749/grant_types/authorization_code.py compare attacker-supplied code_verifier values with stored challenges using ordinary string equality in code_challenge_method_plain and code_challenge_method_s256. Because the comparison can return after a length difference or the first mismatching character, repeated token endpoint measurements can reveal common-prefix timing information that could potentially allow recovery of the code_verifier, unauthorized access-token acquisition, and account takeover. Practical exploitation requires an intercepted, single-use authorization code and enough measurements to overcome real-world network noise; the local timing benchmark does not establish practical remote account takeover, so the weakness remains a defense-in-depth concern. This issue is fixed in version 4.0.0.

CVSS3: 6.8
nvd
28 дней назад

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 3.0.0 until 4.0.0, OAuthLib's PKCE checks in oauthlib/oauth2/rfc6749/grant_types/authorization_code.py compare attacker-supplied code_verifier values with stored challenges using ordinary string equality in code_challenge_method_plain and code_challenge_method_s256. Because the comparison can return after a length difference or the first mismatching character, repeated token endpoint measurements can reveal common-prefix timing information that could potentially allow recovery of the code_verifier, unauthorized access-token acquisition, and account takeover. Practical exploitation requires an intercepted, single-use authorization code and enough measurements to overcome real-world network noise; the local timing benchmark does not establish practical remote account takeover, so the weakness remains a defense-in-depth concern. This issue is fixed in version 4.0.0.

CVSS3: 6.8
msrc
26 дней назад

OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison

CVSS3: 6.8
debian
28 дней назад

OAuthLib is an implementation of the OAuth request-signing logic for P ...

CVSS3: 6.8
github
около 1 месяца назад

Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)

EPSS

Процентиль: 15%
0.00242
Низкий

6.8 Medium

CVSS3