Vulnerability · Published Sep 29, 2021 · Assigned by hackerone
CVE-2021-22946
High 7.5
In plain English
A high-severity security flaw in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 4.5% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22946 |
| Alpine:v3.21 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22946 |
| Alpine:v3.22 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22946 |
| Alpine:v3.23 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22946 |
| Alpine:v3.24 | curl | 7.79.0-r0 | ALPINE-CVE-2021-22946 |
| Debian:12 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22946 |
| Debian:13 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22946 |
| Debian:14 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22946 |
| Rocky Linux:8 | curl | 0:7.61.1-18.el8_4.2 | RLSA-2021:4059 |
| Ubuntu:22.04:LTS | curl | 7.74.0-1.3ubuntu2 | UBUNTU-CVE-2021-22946 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.20.0 to and including 7.78.0 |
Weakness: CWE-325, CWE-319 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://hackerone.com/reports/1334111
- [debian-lts-announce] 20210930 [SECURITY] [DLA 2773-1] curl security update mailing-list
- FEDORA-2021-fc96a3a749 vendor-advisory
- https://www.oracle.com/security-alerts/cpuoct2021.html
- FEDORA-2021-1d24845e93 vendor-advisory
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.netapp.com/advisory/ntap-20211029-0003/
- https://security.netapp.com/advisory/ntap-20220121-0008/
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-list
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://support.apple.com/kb/HT213183
- https://www.oracle.com/security-alerts/cpujul2022.html
- DSA-5197 vendor-advisory
- [debian-lts-announce] 20220828 [SECURITY] [DLA 3085-1] curl security update mailing-list
- GLSA-202212-01 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-146325.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html