CVE-2021-22925: Buffer Overflow
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
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Information
Event History
Parent advisories
This vulnerability appears in the following advisories.
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2021-30811
- CVE-2021-30838
- CVE-2021-30834
- CVE-2021-30928
- CVE-2021-30860
- CVE-2021-31010
- CVE-2021-30827
- CVE-2021-30828
- CVE-2021-30829
- CVE-2021-22925
- CVE-2021-30832
- CVE-2021-30841
- CVE-2021-30842
- CVE-2021-30843
- CVE-2021-30853
- CVE-2021-30933
- CVE-2021-30835
- CVE-2021-30847
- CVE-2021-30830
- CVE-2021-30865
- CVE-2021-30857
- CVE-2021-30859
- CVE-2021-30864
- CVE-2013-0340
- CVE-2021-30813
- CVE-2021-30819
- CVE-2021-30855
- CVE-2021-30925
- CVE-2021-30850
- CVE-2021-30845
- CVE-2021-30844
- CVE-2021-30858
- CVE-2021-30783
- CVE-2020-29622
- CVE-2021-30713
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2021-22925.
What is the severity of CVE-2021-22925?
The severity of CVE-2021-22925 is medium.
What software is affected by CVE-2021-22925?
The affected software includes macOS Big Sur, Catalina, Red Hat curl, IBM QRadar SIEM.
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.
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).