PT-2021-3530 · Curl+9 · Curl+9

Published

2021-04-27

·

Updated

2026-05-18

·

CVE-2021-22898

CVSS v3.1

3.1

Low

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions curl versions 7.7 through 7.76.1
Description The issue is related to the -t command line option, known as CURLOPT TELNETOPTIONS in libcurl, which 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, potentially revealing sensitive internal information to the server using a clear-text network protocol. This happens because curl does not check the return code from a sscanf function invoke correctly, leaving the piece of the send buffer uninitialized for the value part if it was provided longer than 127 bytes.
Recommendations For curl versions 7.7 through 7.76.1, as a temporary workaround, consider disabling the use of the -t command line option, known as CURLOPT TELNETOPTIONS, until a patch is available. Restrict access to TELNET servers to minimize the risk of exploitation. Avoid using the NEW ENV variable in the affected API endpoint until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Information Disclosure

Use of Uninitialized Resource

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2021:4511
ALSA-2021_4511
ALT-PU-2021-1865
ALT-PU-2021-1911
ALT-PU-2021-1937
ALT-PU-2021-2146
ALT-PU-2021-2380
ALT-PU-2021-3668
AZL-6359
BDU:2021-03580
CESA-2021_4511
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2021-22898
DLA-2734-1
DLA-3085-1
DSA-5197-1
ELSA-2021-4511
MGASA-2021-0243
OESA-2021-1216
OPENSUSE-SU-2021:0808-1
OPENSUSE-SU-2021:1762-1
OPENSUSE-SU-2021_0808-1
OPENSUSE-SU-2021_1762-1
OPENSUSE-SU-2024:10582-1
RHSA-2021:4511
RHSA-2021_4511
RLSA-2021:4511
RLSA-2021_4511
SUSE-SU-2021:14735-1
SUSE-SU-2021:14760-1
SUSE-SU-2021:1762-1
SUSE-SU-2021:1763-1
SUSE-SU-2021:1786-1
SUSE-SU-2021:1809-1
SUSE-SU-2021_14735-1
SUSE-SU-2021_14760-1
SUSE-SU-2021_1762-1
SUSE-SU-2021_1763-1
SUSE-SU-2021_1786-1
SUSE-SU-2021_1809-1
USN-5021-1
USN-5021-2
USN-5894-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Curl