ALPINE-CVE-2021-22947 PUBLISHED CVSS 5.900000095367432 MEDIUM

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.

Risk Scores

CVSS v3.1
5.900000095367432
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected Products

VendorProductVersions
Alpine:v3.16curl7.66.0-r0, 7.25.0-r0, 7.26.0-r0
Alpine:v3.11curl7.54.0-r0, 7.54.1-r0, 7.55.0-r0
Alpine:v3.13curl7.52.1-r0, 0, 7.19.2-r0
Alpine:v3.21curl7.22.0-r0, 7.21.7-r2, 7.21.7-r1
Alpine:v3.19curl7.26.0-r0, 7.78.0-r0, 7.77.0-r1
Alpine:v3.22curl7.19.2-r0, 7.19.2-r1, 7.19.4-r0
Alpine:v3.12curl7.40.0-r0, 0, 7.19.2-r0
Alpine:v3.20curl7.42.1-r0, 7.42.1-r1, 7.43.0-r0
Alpine:v3.23curl0, 7.22.0-r0, 7.21.7-r2
Alpine:v3.18curl7.23.1-r0, 7.24.0-r0, 7.25.0-r0
Alpine:v3.17curl7.78.0-r2, 7.78.0-r1, 7.78.0-r0
Alpine:v3.14curl7.47.0-r0, 7.78.0-r0, 7.77.0-r1
Alpine:v3.15curl7.78.0-r2, 0, 7.19.2-r0

Timeline

References

Open in Interactive Console →