Vulnerability · Published Jun 11, 2021 · Assigned by hackerone
CVE-2021-22898
Low 3.1
In plain English
A low-severity information exposure in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 4.5% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
curl 7.7 through 7.76.1 suffers from an information disclosure when the `-t` command line option, known as `CURLOPT_TELNETOPTIONS` in libcurl, is used to send variable=content pairs to TELNET servers. Due to a flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server, resulting in potentially revealing sensitive internal information to the server using a clear-text network protocol.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | curl | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-22.el8 | ALSA-2021:4511 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-22.el8 | ALSA-2021:4511 |
| Alpine:v3.20 | curl | 7.77.0-r0 | ALPINE-CVE-2021-22898 |
| Alpine:v3.21 | curl | 7.77.0-r0 | ALPINE-CVE-2021-22898 |
| Alpine:v3.22 | curl | 7.77.0-r0 | ALPINE-CVE-2021-22898 |
| Alpine:v3.23 | curl | 7.77.0-r0 | ALPINE-CVE-2021-22898 |
| Alpine:v3.24 | curl | 7.77.0-r0 | ALPINE-CVE-2021-22898 |
| Debian:12 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22898 |
| Debian:13 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22898 |
| Debian:14 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22898 |
| Rocky Linux:8 | curl | 0:7.61.1-22.el8 | RLSA-2021:4511 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | 7.7 through 7.76.1 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
References
- https://hackerone.com/reports/1176461 x_refsource_MISC
- https://curl.se/docs/CVE-2021-22898.html x_refsource_MISC
- https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde x_refsource_MISC
- [guacamole-issues] 20210618 [jira] [Created] (GUACAMOLE-1368) Latest docker image fails security scans. mailing-list, x_refsource_MLIST
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- [oss-security] 20210721 [SECURITY ADVISORY] curl: TELNET stack contents disclosure again mailing-list, x_refsource_MLIST
- FEDORA-2021-83fdddca0f vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-5d21b90a30 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210813 [SECURITY] [DLA 2734-1] curl security update mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf x_refsource_CONFIRM
- DSA-5197 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20220828 [SECURITY] [DLA 3085-1] curl security update mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html