CVE-2021-22947: Open Source Curl Remote Code Execution Vulnerability

CVE-2021-22947 affects 110 listed versions of Apple macOS, Oracle MySQL in the Dawnsentry catalogue.

5.9CVSS medium
Proof of concept publicexploitation
3%EPSS (next 30 days)
29 September 2021published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apple macOS

104 of 250 listed versions are affected. Fixed in 12.3. The newest release, 27.2.1, is not affected.

12.2.1 12.2 12.1 12.0.1 12.0.0 12.0 11.7.11 11.7.10 11.7.9 11.7.8 11.7.7 11.7.6 11.7.5 11.7.4 11.7.3 11.7.2 11.7.1 11.7 11.6.8 11.6.7 11.6.6 11.6.5 11.6.4 11.6.3 11.6.2 11.6.1 11.6 11.5.2 11.5.1 11.5 11.4 11.3.1 11.3 11.2.6 11.2.3 11.2.2 11.2.1 11.2.0 11.2 11.1.0 11.1 11.0.1 11.0 10.15.8 10.15.7-security_update_2022-004 10.15.7 10.15.6 10.15.5 10.15.4 10.15.3 10.15.2 10.15.1 10.15 10.14.6 10.14.5 10.14.4 10.14.3 10.14.2 10.14.1 10.14 and 44 more

Oracle MySQL

6 of 221 listed versions are affected. No fixed release is named. The newest release, 26.10.0, is not affected.

5.7.35 5.7.34 5.7.33 5.7.32 5.7.31 5.7.30

What it is

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.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N (NVD)

Published by Hackerone on 29 September 2021. Last changed 14 October 2026.

Sources

Check one version you run: look CVE-2021-22947 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.