CVE-2021-22947
published medium CVSS 3.1 · 5.9curl: Server responses received before STARTTLS processed after TLS handshake
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/curl/curlcurl 7.20.0 to and including 7.78.0 | Affected | Not stated | hackerone |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1724 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | curl | Fixed | 7.79.0-r0 | Package fix record |
| Debian | bullseye | curl | Advisory build | 7.74.0-1.3+deb11u2 | DSA-5197-1 |
| Oracle Linux | 8 | curlaarch64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Red Hat Enterprise Linux | RHEL-7 | rh-dotnet31-curlsrc | Advisory build | 7.61.1-22.el7_9 | RHSA-2022:1354 |
| Alpine Linux | v3.11 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.12 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.13 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.14 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.15 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.16 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.17 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.18 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.19 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.20 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.21 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.22 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.23 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.24 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Debian | buster | curl | Advisory build | 7.64.0-4+deb10u3 | DLA-3085-1 |
| Debian | stretch | curl | Advisory build | 7.52.1-5+deb9u16 | DLA-2773-1 |
| Oracle Linux | 8 | curlx86_64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurlaarch64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurlx86_64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurl-develaarch64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurl-develx86_64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurl-minimalaarch64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Oracle Linux | 8 | libcurl-minimalx86_64 | Advisory build | 0:7.61.1-18.el8_4.2 | ELSA-2021-4059 |
| Red Hat Enterprise Linux | RHEL-7 | rh-dotnet31-curlx86_64 | Advisory build | 7.61.1-22.el7_9 | RHSA-2022:1354 |
| Red Hat Enterprise Linux | RHEL-7 | rh-dotnet31-curl-debuginfox86_64 | Advisory build | 7.61.1-22.el7_9 | RHSA-2022:1354 |
| Red Hat Enterprise Linux | RHEL-7 | rh-dotnet31-libcurlx86_64 | Advisory build | 7.61.1-22.el7_9 | RHSA-2022:1354 |
| Red Hat Enterprise Linux | RHEL-7 | rh-dotnet31-libcurl-develx86_64 | Advisory build | 7.61.1-22.el7_9 | RHSA-2022:1354 |
| Red Hat Enterprise Linux | RHEL-8 | curlaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curlaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curlppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curlppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curls390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curls390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curlsrc | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curlsrc | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curlx86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curlx86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoi686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoi686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfoppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfos390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfos390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfox86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debuginfox86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourceaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourceaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourcei686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourcei686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourceppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourceppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsources390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsources390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourcex86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-debugsourcex86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoi686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoi686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfoppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfos390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfos390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfox86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | curl-minimal-debuginfox86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurli686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurli686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurls390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurls390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlx86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurlx86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoi686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoi686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfoppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfos390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfos390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfox86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-debuginfox86_64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develaarch64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develaarch64 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develi686 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develi686 | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develppc64le | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develppc64le | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-devels390x | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-devels390x | Advisory build | 7.61.1-18.el8_4.2 | RHSA-2021:4059 |
| Red Hat Enterprise Linux | RHEL-8 | libcurl-develx86_64 | Advisory build | 7.61.1-12.el8_2.4 | RHSA-2022:0635 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.20.0 to and including 7.78.0 (affected) | hackerone · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-310 Cryptographic Issues - Generic (CWE-310)
References
17- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 http://seclists.org/fulldisclosure/2022/Mar/29
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://hackerone.com/reports/1334763
- [debian-lts-announce] 20210930 [SECURITY] [DLA 2773-1] curl security update https://lists.debian.org/debian-lts-announce/2021/09/msg00022.html
- [debian-lts-announce] 20220828 [SECURITY] [DLA 3085-1] curl security update https://lists.debian.org/debian-lts-announce/2022/08/msg00017.html
- FEDORA-2021-1d24845e93 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APOAK4X73EJTAPTSVT7IRVDMUWVXNWGD/
- FEDORA-2021-fc96a3a749 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWLEC6YVEM2HWUBX67SDGPSY4CQB72OE/
- GLSA-202212-01 https://security.gentoo.org/glsa/202212-01
- https://security.netapp.com/advisory/ntap-20211029-0003/
- https://support.apple.com/kb/HT213183
- DSA-5197 https://www.debian.org/security/2022/dsa-5197
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
Provider assertions
4hackerone · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 879422c3e6df782601c56c8635434d6b96a1ba061049064e59a1bcd6517f5cd6
- Ingested
- 14 Oct 2026, 14:23:10 UTC
- Source record
- Official CVE record