CVE-2021-22947
- State
- Published
- Severity
- 5.9 Medium
- Published
- Sep 29, 2021
- Updated
- Oct 14, 2026
- Reserved
- Jan 6, 2021
Description
When curl >= 7.20.0 and <= 7.78.0 connects to an IMAP or POP3 server to retrieve data using STARTTLS to upgrade to TLS security, the server can respond and send back multiple responses at once that curl caches. curl would then upgrade to TLS but not flush the in-queue of cached responses but instead continue using and trustingthe responses it got *before* the TLS handshake as if they were authenticated.Using this flaw, it allows a Man-In-The-Middle attacker to first inject the fake responses, then pass-through the TLS traffic from the legitimate server and trick curl into sending data back to the user thinking the attacker's injected data comes from the TLS-protected server.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.9 Medium | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | CISA-ADP |
Weaknesses
- CWE-310 Cryptographic Issues - Generic (CWE-310)
Affected Products
| Product | Versions |
|---|---|
https://github.com/curl/curln/a |
|
References
- https://hackerone.com/reports/1334763
- [debian-lts-announce] 20210930 [SECURITY] [DLA 2773-1] curl security updatemailing-list
- FEDORA-2021-fc96a3a749vendor-advisory
- https://www.oracle.com/security-alerts/cpuoct2021.html
- FEDORA-2021-1d24845e93vendor-advisory
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.netapp.com/advisory/ntap-20211029-0003/
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3mailing-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-5197vendor-advisory
- [debian-lts-announce] 20220828 [SECURITY] [DLA 3085-1] curl security updatemailing-list
- GLSA-202212-01vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.