Advisory

UBUNTU-CVE-2021-22947

Also known as: CVE-2021-22947

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2021-09-15 00:00 UTC
Modified
2026-04-27 09:14 UTC

Affected packages and fixes

curl

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 7.58.0-2ubuntu3.15 (ecosystem)

Fixed versions

7.58.0-2ubuntu3.15

Fix

  • Fixed version 7.58.0-2ubuntu3.15
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

curl

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 7.68.0-1ubuntu2.7 (ecosystem)

Fixed versions

7.68.0-1ubuntu2.7

Fix

  • Fixed version 7.68.0-1ubuntu2.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

curl

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 7.74.0-1.3ubuntu2 (ecosystem)

Fixed versions

7.74.0-1.3ubuntu2

Fix

  • Fixed version 7.74.0-1.3ubuntu2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences