CVE catalog

CVE-2021-22947

curl: CVE-2021-22947

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
3.01% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancurlsid8.23.0-1fixed
Debiancurlforky8.22.0-1fixed
Debiancurltrixie8.14.1-2+deb13u5fixed
Debiancurltrixie-security8.14.1-2+deb13u7fixed
Debiancurlbookworm7.88.1-10+deb12u15fixed
Debiancurlbookworm-security7.88.1-10+deb12u5fixed
CpecurlNot reported7.79.0fixed
CpefedoraNot reportedNot reportedunknown
Cpedebian_linuxNot reportedNot reportedunknown
Cpecloud_backupNot reportedNot reportedunknown
Cpeclustered_data_ontapNot reportedNot reportedunknown
Cpeh300s_firmwareNot reportedNot reportedunknown
Cpeh500s_firmwareNot reportedNot reportedunknown
Cpeh700s_firmwareNot reportedNot reportedunknown
Cpeh300e_firmwareNot reportedNot reportedunknown
Cpeh500e_firmwareNot reportedNot reportedunknown
Cpeh700e_firmwareNot reportedNot reportedunknown
Cpeh410s_firmwareNot reportedNot reportedunknown
Cpesolidfire_baseboard_management_controller_firmwareNot reportedNot reportedunknown
Cpecommunications_cloud_native_core_binding_support_functionNot reportedNot reportedunknown
Cpecommunications_cloud_native_core_network_function_cloud_native_environmentNot reportedNot reportedunknown
Cpecommunications_cloud_native_core_network_repository_functionNot reportedNot reportedunknown
Alpinecurl3.117.79.0-r0fixed
Alpinecurl3.127.79.0-r0fixed
Alpinecurl3.137.79.0-r0fixed
Alpinecurl3.147.79.0-r0fixed
Alpinecurl3.157.79.0-r0fixed
Alpinecurl3.167.79.0-r0fixed
Alpinecurl3.177.79.0-r0fixed
Alpinecurl3.187.79.0-r0fixed
Alpinecurl3.197.79.0-r0fixed
Alpinecurl3.207.79.0-r0fixed
Alpinecurl3.217.79.0-r0fixed
Alpinecurl3.227.79.0-r0fixed
Alpinecurl3.237.79.0-r0fixed
Alpinecurl3.247.79.0-r0fixed
Ubuntucurlpro7.43.0-1ubuntu2vulnerable
Ubuntucurlpro7.45.0-1ubuntu1vulnerable
Ubuntucurlpro7.46.0-1ubuntu1vulnerable
Ubuntucurlpro7.47.0-1ubuntu1vulnerable
Ubuntucurlpro7.47.0-1ubuntu2vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.1vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.2vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.3vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.4vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.5vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.6vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.7vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.8vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.9vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.11vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.12vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.13vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.14vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.15vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.16vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.18vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.19vulnerable
Ubuntucurlpro7.47.0-1ubuntu2.19+esm1fixed
Ubuntucurl18.047.55.1-1ubuntu2vulnerable
Ubuntucurl18.047.55.1-1ubuntu2.1vulnerable
Ubuntucurl18.047.57.0-1ubuntu1vulnerable
Ubuntucurl18.047.58.0-2ubuntu1vulnerable
Ubuntucurl18.047.58.0-2ubuntu2vulnerable
Ubuntucurl18.047.58.0-2ubuntu3vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.1vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.2vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.3vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.5vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.6vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.7vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.8vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.9vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.10vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.12vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.13vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.14vulnerable
Ubuntucurl18.047.58.0-2ubuntu3.15fixed
Ubuntucurl20.047.65.3-1ubuntu3vulnerable
Ubuntucurl20.047.65.3-1ubuntu4vulnerable
Ubuntucurl20.047.66.0-1ubuntu1vulnerable
Ubuntucurl20.047.67.0-2ubuntu1vulnerable
Ubuntucurl20.047.68.0-1ubuntu1vulnerable
Ubuntucurl20.047.68.0-1ubuntu2vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.1vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.2vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.4vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.5vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.6vulnerable
Ubuntucurl20.047.68.0-1ubuntu2.7fixed
Ubuntucurl22.047.74.0-1.3ubuntu2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancurlsourcesid7.79.1-1not yet assignedNot reportedNot reported
Debiancurlsourceforky7.79.1-1not yet assignedNot reportedNot reported
Debiancurlsourcetrixie7.79.1-1not yet assignedNot reportedNot reported
Debiancurlsourcebookworm7.79.1-1not yet assignedNot reportedNot reported
CpecurlcpeNot reported7.79.0Not reportedNVD-CVE-2021-22947Not reported
Alpinecurlapk3.117.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.127.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.137.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.147.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.157.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.167.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.177.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.187.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.197.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.207.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.217.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.227.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.237.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Alpinecurlapk3.247.79.0-r0Not reportedALPINE-CVE-2021-22947Not reported
Ubuntucurldebpro7.47.0-1ubuntu2.19+esm1Not reportedUBUNTU-CVE-2021-22947Not reported
Ubuntucurldeb18.047.58.0-2ubuntu3.15Not reportedUBUNTU-CVE-2021-22947Not reported
Ubuntucurldeb20.047.68.0-1ubuntu2.7Not reportedUBUNTU-CVE-2021-22947Not reported
Ubuntucurldeb22.047.74.0-1.3ubuntu2Not reportedUBUNTU-CVE-2021-22947Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [curl]Unknown
    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • [libcurl3-nss]Unknown

    Source package: [curl]

    Details (4)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • [libcurl4]Unknown

    Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • [libcurl4-doc]Unknown

    Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · all · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · all · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · all · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · all · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · all · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · all · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • Source package: [curl]

    Details (4)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.79.1-1

      dsa · curl · debian · bookworm

Observed:

References