CVE-2022-36087OAuthLib vulnerable DoS when attacker provides malicious IPV6 URI
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.
What to do
Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | python-oauthlib | Fixed | 3.2.0-1ubuntu0.1 | UBUNTU-CVE-2022-36087 |
| Ubuntu 16.04 | python-oauthlib | Fix pending | ||
| Ubuntu 14.04 | python-oauthlib | Fix pending | ||
| Debian 14 | python-oauthlib | Fixed | 3.2.1-1 | DEBIAN-CVE-2022-36087 |
| Debian 13 | python-oauthlib | Fixed | 3.2.1-1 | DEBIAN-CVE-2022-36087 |
| Debian 12 | python-oauthlib | Fixed | 3.2.1-1 | DEBIAN-CVE-2022-36087 |
| Red Hat Enterprise Linux 9 | fence-agents | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-aliyun | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-all | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-amt-ws | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-apc | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-apc-snmp | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-aws | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-azure-arm | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-bladecenter | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-brocade | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-cisco-mds | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-cisco-ucs | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-common | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-compute | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-drac5 | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-eaton-snmp | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-emerson | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-eps | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-gce | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-heuristics-ping | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-hpblade | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ibm-powervs | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ibm-vpc | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ibmblade | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ifmib | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ilo-moonshot | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ilo-mp | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ilo-ssh | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ilo2 | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-intelmodular | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ipdu | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-ipmilan | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-kdump | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-kubevirt | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-lpar | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-mpath | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-openstack | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-redfish | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-rhevm | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-rsa | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-rsb | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-sbd | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-scsi | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-virsh | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-vmware-rest | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-vmware-soap | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-wti | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-agents-zvm | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virt | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd-cpg | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd-libvirt | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd-multicast | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd-serial | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | fence-virtd-tcp | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| Red Hat Enterprise Linux 9 | ha-cloud-support | Fixed | 0:4.10.0-43.el9 | RHSA-2023:2161 |
| AlmaLinux 9 | fence-agents-aliyun | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-all | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-amt-ws | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-apc | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-apc-snmp | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-aws | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-azure-arm | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-bladecenter | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-brocade | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-cisco-mds | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-cisco-ucs | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-common | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-compute | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-drac5 | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-eaton-snmp | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-emerson | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-eps | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-gce | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-heuristics-ping | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-hpblade | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ibm-powervs | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ibm-vpc | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ibmblade | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ifmib | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ilo-moonshot | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ilo-mp | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ilo-ssh | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ilo2 | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-intelmodular | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ipdu | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-ipmilan | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-kdump | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-kubevirt | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-lpar | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-mpath | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-openstack | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-redfish | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-rhevm | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-rsa | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-rsb | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-sbd | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-scsi | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-virsh | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-vmware-rest | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-vmware-soap | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-wti | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-agents-zvm | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virt | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd-cpg | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd-libvirt | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd-multicast | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd-serial | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | fence-virtd-tcp | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| AlmaLinux 9 | ha-cloud-support | Fixed | 4.10.0-43.el9 | ALSA-2023:2161 |
| PyPI library | oauthlib | Fixed | 3.2.2 | PYSEC-2022-269 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- oauthlib: affected: >= 3.1.1, < 3.2.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3pgj-pg6c-r5p7
- https://github.com/oauthlib/oauthlib/commit/2e40b412c844ecc4673c3fa3f72181f228bdbacd
- 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
- https://github.com/oauthlib/oauthlib/releases/tag/v3.2.1
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QRYLYHE5HWF6R2CRLJFUK4PILR47WXOE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X2CQZM5CKOUM4GW2GTAPQEQFPITQ6F7S/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NBCQJR3ZF7FVNTJYRVPVSQEQRAYZIUHU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LXOPIA6M57CFQPUT6HHSNXCTV6QA3UDI/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.