CVE-2021-22925: Buffer Overflow

Published Jun 11, 2021
·
Updated

A flaw was found in the way curl handled telnet protocol option for sending environment variables, which could lead to sending of uninitialized data from a stack-based buffer to the server. This issue leads to potentially revealing sensitive internal information to the server using a clear-text network protocol.

Other sources

cURL libcurl could allow a remote attacker to obtain sensitive information, caused by a flaw in the option parser for sending NEWENV variables. By sniffing the network traffic, an attacker could exploit this vulnerability to obtain TELNET stack contents, and use this information to launch further attacks against the affected system.

IBM

curl supports the -t command line option, known as CURLOPTTELNETOPTIONSin libcurl. This rarely used option is used to send variable=content pairs toTELNET servers.Due to flaw in the option parser for sending NEWENV variables, libcurlcould be made to pass on uninitialized data from a stack based buffer to theserver. Therefore potentially revealing sensitive internal information to theserver using a clear-text network protocol.This could happen because curl did not call and use sscanf() correctly whenparsing the string provided by the application.

curl. A buffer overflow was addressed with improved input validation.

CVE-2021-22898: TELNET stack contents disclosure (see bug 1964887) issue was recently reported for curl and it was addressed in curl 7.77.0:

https://curl.se/docs/CVE-2021-22898.html https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde https://hackerone.com/reports/1176461

However, the fix applied is not correct and does not completely address the issue. It helps in cases when long environment variable name is used ('a'256 + ',b'), but not when the name is short and only the value is long ('a,' + 'b'256, which is the example mentioned in the curl project advisory).

Long variable values still trigger memory disclosure as described in the original report.

This issue was reported upstream via:

https://hackerone.com/reports/1223882

Red Hat

Credit

Red Hat Product Security

Affected Software

66 affected componentsFixes available
redhat/curl<0:7.61.1-22.el8
0:7.61.1-22.el8
redhat/curl<7.78.0
7.78.0
Apple macOS Big Sur<11.6
11.6
Apple Catalina
IBM QRadar SIEM<=7.5.0 GA
IBM QRadar SIEM<=7.4.3 GA - 7.4.3 FP4
IBM QRadar SIEM<=7.3.3 GA - 7.3.3 FP10
haxx curl>=7.7<7.78.0
Fedoraproject Fedora=33
NetApp Cloud Backup
NetApp Clustered Data ONTAP
NetApp Hci Management Node
NetApp Solidfire
Apple iOS and macOS=10.15.7
Apple iOS and macOS=10.15.7-security_update_2021-001
Apple iOS and macOS=10.15.7-security_update_2021-002
Apple iOS and macOS=10.15.7-security_update_2021-003
Apple iOS and macOS=10.15.7-security_update_2021-004
Apple macOS=11.0
Apple macOS=11.0.1
Apple macOS=11.1
Apple macOS=11.1.0
Apple macOS=11.2
Apple macOS=11.2.1
Apple macOS=11.3
Apple macOS=11.3.1
Apple macOS=11.4
Apple macOS=11.5
Oracle MySQL Server>=5.7.0<=5.7.35
Oracle MySQL Server>=8.0.0<=8.0.26
Oracle PeopleSoft Enterprise PeopleTools=8.57
Oracle PeopleSoft Enterprise PeopleTools=8.58
Oracle PeopleSoft Enterprise PeopleTools=8.59
Siemens Sinec Infrastructure Network Services<1.0.1.1
Siemens SINEMA Remote Connect Server<3.1
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s

Remediation

Information

This issue can be avoided by not setting any telnet options for the curl command line tool (using the -t / --telnet-option command line option) or the libcurl library (using the CURLOPT_TELNETOPTIONS option) when telnet protocol is not meant to be used. If telnet protocol needs to be used with curl / libcurl, along with the NEW_ENV telnet option, ensure that no environment variable set via the NEW_ENV option has the name or value longer than 127 bytes.

Event History

Jul 21, 2021
CVE Published
12:00 AM
Aug 5, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2021-22925.

2

What is the severity of CVE-2021-22925?

The severity of CVE-2021-22925 is medium.

3

What software is affected by CVE-2021-22925?

The affected software includes macOS Big Sur, Catalina, Red Hat curl, IBM QRadar SIEM.

4

How can I fix CVE-2021-22925 on macOS Big Sur?

You can fix CVE-2021-22925 on macOS Big Sur by updating to the latest version 11.6.

5

Where can I find more information about CVE-2021-22925?

You can find more information about CVE-2021-22925 at the following references: [link 1](https://support.apple.com/en-us/HT212804), [link 2](https://support.apple.com/en-us/HT212805), [link 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1964887).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203