CVE-2021-22946
JSON

7.5high

Protocol downgrade required TLS bypassed

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
4.54% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2021-22946

Description

A user can tell curl >= 7.20.0 and <= 7.78.0 to require a successful upgrade to TLS when speaking to an IMAP, POP3 or FTP server (`--ssl-reqd` on the command line or`CURLOPT_USE_SSL` set to `CURLUSESSL_CONTROL` or `CURLUSESSL_ALL` withlibcurl). This requirement could be bypassed if the server would return a properly crafted but perfectly legitimate response.This flaw would then make curl silently continue its operations **withoutTLS** contrary to the instructions and expectations, exposing possibly sensitive data in clear text over the network.

Affected

Product or packageVersionsReported by
https://github.com/curl/curlcurl 7.20.0 to and including 7.78.0CVE List
https://github.com/curl/curl.gitfrom 7.20.0 before 7.79.0, from ec3bb8f727405642a471b4b1b9eb0118fc003104 before 364f174724ef115c63d5e5dc1d3342c8a43b1ccacurl
haxx curlfrom 7.20.0 before 7.79.0NVD
debian debian_linux9.0, 10.0, 11.0NVD
fedoraproject fedora33, 35NVD
netapp cloud_backupNot specifiedNVD
netapp clustered_data_ontapNot specifiedNVD
netapp oncommand_insightNot specifiedNVD
netapp oncommand_workflow_automationNot specifiedNVD
netapp snapcenterNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD

All scores

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

Classification

CWE-319CWE-325

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

A user can tell curl >= 7.20.0 and <= 7.78.0 to require a successful upgrade to TLS when speaking to an IMAP, POP3 or FTP server (`--ssl-reqd` on the command line or`CURLOPT_USE_SSL` set to `CURLUSESSL_CONTROL` or `CURLUSESSL_ALL` withlibcurl). This requirement could be bypassed if the server would return a properly crafted but perfectly legitimate response.This flaw would then make curl silently continue its operations **withoutTLS** contrary to the instructions and expectations, exposing possibly sensitive data in clear text over the network.

curl

A user can tell curl to require a successful upgrade to TLS when speaking to an IMAP, POP3 or FTP server (--ssl-reqd on the command line or CURLOPT_USE_SSL set to CURLUSESSL_CONTROL or CURLUSESSL_ALL with libcurl). This requirement could be bypassed if the server would return a properly crafted but perfectly legitimate response.

This flaw would then make curl silently continue its operations without TLS contrary to the instructions and expectations, exposing possibly sensitive data in clear text over the network.

NVD (es)

Un usuario puede decirle a curl versiones posteriores a 7.20.0 incluyéndola , y versiones anteriores a 7.78.0 incluyéndola, que requiera una actualización con éxito a TLS cuando hable con un servidor IMAP, POP3 o FTP ("--ssl-reqd" en la línea de comandos o "CURLOPT_USE_SSL" configurado como "CURLUSESSL_CONTROL" o "CURLUSESSL_ALL" conlibcurl). Este requisito podría ser omitido si el servidor devolviera una respuesta correctamente diseñada pero perfectamente legítima. Este fallo haría que curl continuara silenciosamente sus operaciones **withoutTLS** en contra de las instrucciones y expectativas, exponiendo posiblemente datos confidenciales en texto sin cifrar a través de la red

References

https://hackerone.com/reports/1334111exploit, issue-tracking, patch, third-party-advisory
https://lists.debian.org/debian-lts-announce/2021/09/msg00022.htmlmailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWLEC6YVEM2HWUBX67SDGPSY4CQB72OE/mailing-list, third-party-advisory, vendor-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APOAK4X73EJTAPTSVT7IRVDMUWVXNWGD/mailing-list, third-party-advisory, vendor-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlthird-party-advisory
https://security.netapp.com/advisory/ntap-20211029-0003/third-party-advisory
https://security.netapp.com/advisory/ntap-20220121-0008/third-party-advisory
http://seclists.org/fulldisclosure/2022/Mar/29mailing-list, third-party-advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory
https://support.apple.com/kb/HT213183release-notes, third-party-advisory

Sources

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