{"id":"CVE-2021-22898","aliases":["CVE-2021-22898","CURL-CVE-2021-22898"],"related":[],"kind":"vulnerability","state":"published","title":"TELNET stack contents disclosure","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"curl supports the `-t` command line option, known as `CURLOPT_TELNETOPTIONS`\nin libcurl. This rarely used option is used to send variable=content pairs to\nTELNET servers.\n\nDue to flaw in the option parser for sending `NEW_ENV` variables, libcurl\ncould be made to pass on uninitialized data from a stack based buffer to the\nserver. Therefore potentially revealing sensitive internal information to the\nserver using a clear-text network protocol.\n\nThis could happen because curl did not check the return code from a\n`sscanf(command, \"%127[^,],%127s\")` function invoke correctly, and would leave\nthe piece of the send buffer uninitialized for the value part if it was\nprovided longer than 127 bytes. The buffer used for this is 2048 bytes big and\nthe *variable* part of the *variable=content* pairs would be stored correctly\nin the send buffer, making curl sending \"interleaved\" bytes sequences of stack\ncontents. A single curl TELNET handshake could then be made to send off a\ntotal of around 1800 bytes of (non-contiguous) stack contents in this style:\n\n    [control byte]name[control byte]\n    stack contents\n    [control byte]name[control byte]\n    stack contents\n    ...\n\nAn easy proof of concept command line looks like this:\n\n    curl telnet://example.com -tNEW_ENV=a,bbbbbb (256 'b's)","format":"markdown","source":"curl"},{"lang":"es","text":"curl versiones 7.7 hasta 7.76.1 sufre de una divulgacion de información cuando la opción de línea de comandos \"-t\", conocida como \"CURLOPT_TELNETOPTIONS\" en libcurl, se usa para enviar pares de variables=contenido a servidores TELNET. Debido a un fallo en el analizador de opciones para el envío de variables NEW_ENV, podría hacer que libcurl pasara datos no inicializados de un búfer basado en la pila al servidor, resultando en una potencial divulgación de información interna confidencial al servidor que usaba un protocolo de red de texto sin cifrar","source":"nvd"}],"published":"2021-05-26T08:00:00.000Z","modified":"2026-10-25T01:05:32.932Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.1,"rating":"LOW"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.1,"rating":"LOW"},{"scorer":"curl","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.1,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:N/A:N","score":2.6,"rating":"LOW"}],"cwes":["CWE-200","CWE-909"],"affected":[{"ranges":[{"version":"7.7 through 7.76.1","status":"affected"}],"product":"https://github.com/curl/curl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.7","status":"affected","fixed":"7.77.0"},{"type":"git","introduced":"a1d6ad26100bc493c7b04f1301b1634b7f5aa8b4","status":"affected","fixed":"39ce47f219b09c380b81f89fe54ac586c8db6bde"}],"repo":"https://github.com/curl/curl.git","source":"curl"},{"ranges":[{"status":"affected","introduced":"7.7","lastAffected":"7.76.1"}],"vendor":"haxx","product":"curl","cpe":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.11.0"}],"vendor":"oracle","product":"communications_cloud_native_core_binding_support_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:1.11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.10.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_function_cloud_native_environment","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"},{"status":"affected","version":"1.15.1"}],"vendor":"oracle","product":"communications_cloud_native_core_network_repository_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_repository_function:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.8.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_slice_selection_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_slice_selection_function:1.8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"}],"vendor":"oracle","product":"communications_cloud_native_core_service_communication_proxy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_service_communication_proxy:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"11.1.2.4.047"},{"status":"affected","introduced":"21.0","fixed":"21.3"}],"vendor":"oracle","product":"essbase","cpe":"cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"5.7.34"},{"status":"affected","introduced":"8.0.15","fixed":"8.0.25"}],"vendor":"oracle","product":"mysql_server","cpe":"cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0.1.1"}],"vendor":"siemens","product":"sinec_infrastructure_network_services","cpe":"cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.2.0","fixed":"8.2.12"},{"status":"affected","introduced":"9.0.0","fixed":"9.0.6"},{"status":"affected","version":"9.1.0"}],"vendor":"splunk","product":"universal_forwarder","cpe":"cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/1176461","tags":["exploit","issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://curl.se/docs/CVE-2021-22898.html","tags":["exploit","patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/rc713534b10f9daeee2e0990239fa407e2118e4aa9e88a7041177497c%40%3Cissues.guacamole.apache.org%3E","tags":["mailing-list","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2021/07/21/4","tags":["mailing-list","patch","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/POOC3UV7V6L4CJ5KA2PTWTNUV5Y72T3Q/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/","tags":["mailing-list","third-party-advisory","vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00017.html","tags":["mailing-list","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2022/dsa-5197","tags":["third-party-advisory","vendor-advisory","x-refsource-debian","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/08/msg00017.html","tags":["mailing-list","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Harry Sintonen"],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-03-28T18:31:55.808Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22898","url":"https://www.cve.org/CVERecord?id=CVE-2021-22898","licence":"CVE Terms of Use","modified":"2026-10-14T10:21:16.555Z"},{"source":"curl","name":"curl","id":"CURL-CVE-2021-22898","url":"https://osv.dev/vulnerability/CURL-CVE-2021-22898","licence":"MIT","modified":"2026-10-25T01:05:32.932Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22898","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22898","licence":"Public domain","modified":"2026-10-14T11:16:52.873Z"}],"updatedAt":"2026-11-25T22:58:01.809Z","epss":{"score":0.04507,"percentile":0.91714,"date":"2026-12-01T12:00:22.000Z"}}