CVE-2021-22925
JSON

5.3medium

TELNET stack contents disclosure again

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
5.37% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2021-22925

Description

curl supports the `-t` command line option, known as `CURLOPT_TELNETOPTIONS`in libcurl. This rarely used option is used to send variable=content pairs toTELNET servers.Due to flaw in the option parser for sending `NEW_ENV` 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.

Affected

Product or packageVersionsReported by
https://github.com/curl/curlcurl 7.7 to and including 7.77.0CVE List
https://github.com/curl/curl.gitfrom 7.7 before 7.78.0, from a1d6ad26100bc493c7b04f1301b1634b7f5aa8b4 before 894f6ec730597eb243618d33cc84d71add8d6a8acurl
haxx curlfrom 7.7 before 7.78.0NVD
fedoraproject fedora33NVD
netapp cloud_backupNot specifiedNVD
netapp clustered_data_ontapNot specifiedNVD
netapp hci_management_nodeNot specifiedNVD
netapp solidfireNot specifiedNVD
apple mac_os_x10.15.7NVD
apple macos11.0, 11.0.1, 11.1, 11.1.0, 11.2, 11.2.1, 11.3, 11.3.1 and 2 moreNVD
oracle mysql_serverfrom 5.7.0 up to 5.7.35, from 8.0.0 up to 8.0.26NVD
oracle peoplesoft_enterprise_peopletools8.57, 8.58, 8.59NVD

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
curlmedium rating
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-200CWE-908

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

curl supports the `-t` command line option, known as `CURLOPT_TELNETOPTIONS`in libcurl. This rarely used option is used to send variable=content pairs toTELNET servers.Due to flaw in the option parser for sending `NEW_ENV` 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

curl supports the -t command line option, known as CURLOPT_TELNETOPTIONS in libcurl. This rarely used option is used to send variable=content pairs to TELNET servers.

Due to 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. Therefore potentially revealing sensitive internal information to the server using a clear-text network protocol.

This could happen because curl did not call and use sscanf() correctly when parsing the string provided by the application.

The previous curl security vulnerability CVE-2021-22898 is almost identical to this one but the fix was insufficient so this security vulnerability remained.

NVD (es)

curl soporta la opción de línea de comandos "-t", conocida como "CURLOPT_TELNETOPTIONS" en libcurl. Debido a un fallo en el analizador de opciones para el envío de variables "NEW_ENV", libcurl podría pasar datos no inicializados de un búfer en la región stack de la memoria al servidor. Por lo tanto, podría revelar potencialmente información interna confidencial al servidor usando un protocolo de red de texto sin cifrar. Esto podría ocurrir porque curl no llamó y usó la función sscanf() apropiadamente al analizar la cadena proporcionada por la aplicación

References

https://hackerone.com/reports/1223882exploit, issue-tracking, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/mailing-list, third-party-advisory, vendor-advisory
http://seclists.org/fulldisclosure/2021/Sep/40mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2021/Sep/39mailing-list, third-party-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210902-0003/third-party-advisory
https://support.apple.com/kb/HT212805third-party-advisory
https://support.apple.com/kb/HT212804third-party-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdfthird-party-advisory
https://security.gentoo.org/glsa/202212-01third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-22925 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2021-22925 changed 2026-10-25MIT
NVDCVE-2021-22925 changed 2026-10-14Public domain