# CVE-2021-22947: STARTTLS protocol injection via MITM

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.02%, higher than 88% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-15T08:00:00.000Z
- Modified: 2026-10-25T01:04:42.126Z
- Also known as: CURL-CVE-2021-22947
- Weaknesses: CWE-310, CWE-345
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: curl 7.20.0 to and including 7.78.0
- https://github.com/curl/curl.git: from 7.20.0 before 7.79.0; from ec3bb8f727405642a471b4b1b9eb0118fc003104 before 8ef147c43646e91fdaad5d0e7b60351f842e5c68
- haxx curl: from 7.20.0 before 7.79.0
- fedoraproject fedora: 33; 35
- debian debian_linux: 9.0; 10.0; 11.0
- netapp cloud_backup: no versions given
- netapp clustered_data_ontap: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp solidfire_baseboard_management_controller_firmware: no versions given
- oracle communications_cloud_native_core_binding_support_function: 1.11.0; 22.1.3
- oracle communications_cloud_native_core_network_function_cloud_native_environment: 1.10.0
- oracle communications_cloud_native_core_network_repository_function: 1.15.0; 1.15.1; 22.1.2; 22.2.0
- oracle communications_cloud_native_core_network_slice_selection_function: 1.8.0
- oracle communications_cloud_native_core_service_communication_proxy: 1.15.0
- oracle mysql_server: from 5.7.0 up to 5.7.35; from 8.0.0 up to 8.0.26
- oracle peoplesoft_enterprise_peopletools: 8.57; 8.58; 8.59
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- apple macos: before 12.3
- oracle commerce_guided_search: 11.3.2
- oracle communications_cloud_native_core_console: 22.2.0
- oracle communications_cloud_native_core_security_edge_protection_proxy: 22.1.1
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- curl: rating Medium
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://hackerone.com/reports/1334763> (exploit, issue-tracking, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/09/msg00022.html> (mailing-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.html> (patch, 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.html> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20211029-0003/> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Mar/29> (mailing-list, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://support.apple.com/kb/HT213183> (release-notes, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5197> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/08/msg00017.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202212-01> (third-party-advisory, vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-389290.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-22947](https://www.cve.org/CVERecord?id=CVE-2021-22947), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2021-22947](https://osv.dev/vulnerability/CURL-CVE-2021-22947), MIT, modified 2026-10-25
- NVD: [CVE-2021-22947](https://nvd.nist.gov/vuln/detail/CVE-2021-22947), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-22947 · Whole record: https://cve.day/CVE-2021-22947.json · Rebuilt by cve.day 2026-11-25T22:58:04.225Z
