CVE-2022-22576
JSON

8.1high

OAUTH2 bearer bypass in connection reuse

Severity
8.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.99% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2022-22576

Description

An improper authentication vulnerability exists in curl 7.33.0 to and including 7.82.0 which might allow reuse OAUTH2-authenticated connections without properly making sure that the connection was authenticated with the same credentials as set for this transfer. This affects SASL-enabled protocols: SMPTP(S), IMAP(S), POP3(S) and LDAP(S) (openldap only).

Affected

Product or packageVersionsReported by
https://github.com/curl/curlFixed in curl 7.83.0CVE List
https://github.com/curl/curl.gitfrom 7.33.0 before 7.83.0, from 19a05c908f7d8be82de6f69f533317d8a0db49dd before 852aa5ad351ea53e5f01d2f44b5b4370c2bf5425curl
haxx curlfrom 7.33.0 before 7.83.0NVD
debian debian_linux10.0, 11.0NVD
netapp clustered_data_ontapNot specifiedNVD
netapp solidfire_&_hci_management_nodeNot specifiedNVD
netapp solidfire_&_hci_storage_nodeNot specifiedNVD
broadcom fabric_operating_systemNot specifiedNVD
netapp bootstrap_osNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD

All scores

CISA-ADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
curlmedium rating
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD5.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:N

Classification

CWE-287CWE-306

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

An improper authentication vulnerability exists in curl 7.33.0 to and including 7.82.0 which might allow reuse OAUTH2-authenticated connections without properly making sure that the connection was authenticated with the same credentials as set for this transfer. This affects SASL-enabled protocols: SMPTP(S), IMAP(S), POP3(S) and LDAP(S) (openldap only).

curl

libcurl might reuse OAUTH2-authenticated connections without properly making sure that the connection was authenticated with the same credentials as set for this transfer. This affects SASL-enabled protocols: SMTP(S), IMAP(S), POP3(S) and LDAP(S) (OpenLDAP only).

libcurl maintains a pool of live connections after a transfer has completed (sometimes called the connection cache). This pool of connections is then gone through when a new transfer is requested and if there is a live connection available that can be reused, it is preferred instead of creating a new one.

Due to this security vulnerability, a connection that is successfully created and authenticated with a username + OAUTH2 bearer could subsequently be erroneously reused even for user + [other OAUTH2 bearer], even though that might not even be a valid bearer. This could lead to an authentication bypass, either by mistake or by a malicious actor.

NVD (es)

Se presenta una vulnerabilidad de autenticación inapropiada en curl versiones 7.33.0 hasta 7.82.0 incluyéndola, que podría permitir reúso de conexiones autenticadas por OAUTH2 sin asegurarse apropiadamente de que la conexión fue autenticada con las mismas credenciales establecidas para esta transferencia. Esto afecta a los protocolos con SASL: SMPTP(S), IMAP(S), POP3(S) y LDAP(S) (sólo openldap)

References

Sources

SourceRecordLicence
CVE ListCVE-2022-22576 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2022-22576 changed 2026-10-25MIT
NVDCVE-2022-22576 changed 2026-10-14Public domain