OAuthLib vulnerable DoS when attacker provides malicious IPV6 URI
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601.
Summary
OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. In OAuthLib versions 3.1.1 until 3.2.1, an attacker providing malicious redirect uri can cause denial of service. An attacker can also leverage usage of `uri_validate` functions depending where it is used. OAuthLib applications using OAuth2.0 provider support or use directly `uri_validate` are affected by this issue. Version 3.2.1 contains a patch. There are no known workarounds.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| oauthlib | oauthlib | 3.1.1 to before 3.2.1 | 3.2.1 | Patch available | CNA |
| — | oauthlib (PyPI) | 3.1.1 to before 3.2.2 | 3.2.2 | Patch available | GHSA-3pgj-pg6c-r5p7 |
- oauthlib Vendoroauthlib Affected 3.1.1 to before 3.2.1 Fixed in 3.2.1 Patch available CNA
- oauthlib (PyPI) Vendor— Affected 3.1.1 to before 3.2.2 Fixed in 3.2.2 Patch available GHSA-3pgj-pg6c-r5p7
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:oauthlib_project:oauthlib:*:*:*:*:*:*:*:* | 3.1.1 to before 3.2.1 | Vulnerable | Oauthlib Project |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:oauthlib_project:oauthlib:*:*:*:*:*:*:*:* Versions 3.1.1 to before 3.2.1 Vulnerable ·Oauthlib Project
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA oauthlib (oauthlib) Fixed in 3.2.1
- Fix · GHSA-3pgj-pg6c-r5p7 oauthlib (PyPI) Fixed in 3.2.2 Advisory →
Red Hat 1 advisory
- RHSA-2023:2161 Released 2023-05-09 · Red Hat rating Moderatefence-agents security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 9) fence-agents-4.10.0-43.el9, fence-agents-common-4.10.0-43.el9, fence-agents-compute-4.10.0-43.el9 +11
- Red Hat Enterprise Linux HighAvailability (v. 9) fence-agents-aliyun-4.10.0-43.el9, fence-agents-all-4.10.0-43.el9, fence-agents-amt-ws-4.10.0-43.el9 +39
- Red Hat Enterprise Linux ResilientStorage (v. 9) fence-agents-aliyun-4.10.0-43.el9, fence-agents-all-4.10.0-43.el9, fence-agents-amt-ws-4.10.0-43.el9 +39
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2161 |
| Red Hat Enterprise Linux HighAvailability (v. 9) | Fixed | RHSA-2023:2161 |
| Red Hat Enterprise Linux ResilientStorage (v. 9) | Fixed | RHSA-2023:2161 |
Not affected: 2 products
- Red Hat OpenStack Platform 16.1
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2022-36087
- 2026-10-03 Alias added: GHSA-3pgj-pg6c-r5p7
References
Exploit 3
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3pgj-pg6c-r5p7
- https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.py
- https://github.com/oauthlib/oauthlib/blob/d4bafd9f1d0eba3766e933b1ac598cbbf37b8914/oauthlib/oauth2/rfc6749/grant_types/base.py#L232
Advisory 6
Other 6
- https://github.com/oauthlib/oauthlib
- https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2022-269.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LXOPIA6M57CFQPUT6HHSNXCTV6QA3UDI
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NBCQJR3ZF7FVNTJYRVPVSQEQRAYZIUHU
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QRYLYHE5HWF6R2CRLJFUK4PILR47WXOE
- https://lists.fedoraproject.org/archives/list/[email protected]/message/X2CQZM5CKOUM4GW2GTAPQEQFPITQ6F7S
More oauthlib vulnerabilities
- TI-2026-85670 Missing device code check in OAuthLib lets callers get bearer tokens CVSS 3.1HIGH 8.5
- TI-2026-82213 OAuthLib token grants can authorize with another client's identity CVSS 4.0HIGH 8.4
- TI-2026-71760 Unsafe JSONP callback injection in OAuthLib RevocationEndpoint CVSS 3.1MEDIUM 6.1
- TI-2026-71761 Timing side channel in OAuthLib PKCE code_verifier comparison CVSS 3.1MEDIUM 6.8
Sources
- CVE-2022-36087 · CVE Program
- CVE-2022-36087 · NVD
- FIRST EPSS
- GHSA-3pgj-pg6c-r5p7 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-36087 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences