cve.bz

CVE-2021-22898 Missing Initialization of Resource

3.1 lowExploit referenceEPSS 4.5%Fix available

Low (3.1). EPSS 4.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

3.1 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS
4.5% (unchanged from 4.5% a week ago; 4.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-03-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-909 Missing Initialization of Resource
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22898 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22898?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22898?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22898 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-22898

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-22898](https://cve.bz/cve/badge/CVE-2021-22898.svg)](https://cve.bz/cve/CVE-2021-22898)

HTML:

<a href="https://cve.bz/cve/CVE-2021-22898"><img src="https://cve.bz/cve/badge/CVE-2021-22898.svg" alt="CVE-2021-22898"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haxx:curlfrom 7.7 through 7.76.1
debian:debian_linux9.0
fedoraproject:fedora33
fedoraproject:fedora34
oracle:communications_cloud_native_core_binding_support_function1.11.0
oracle:communications_cloud_native_core_network_function_cloud_native_environment1.10.0
oracle:communications_cloud_native_core_network_repository_function1.15.0
oracle:communications_cloud_native_core_network_repository_function1.15.1
oracle:communications_cloud_native_core_network_slice_selection_function1.8.0
oracle:communications_cloud_native_core_service_communication_proxy1.15.0
oracle:essbasebefore 11.1.2.4.047
oracle:essbasefrom 21.0 before 21.3
oracle:mysql_serverbefore 5.7.34
oracle:mysql_serverfrom 8.0.15 before 8.0.25
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9curl7.52.1-5+deb9u15DLA-2734-1
Debian10curl7.64.0-4+deb10u3DLA-3085-1
Debian11curl7.74.0-1.3+deb11u2DSA-5197-1
Debian12, 13, 14curl7.79.1-1DEBIAN-CVE-2021-22898
Ubuntu18.04:LTScurl7.58.0-2ubuntu3.14UBUNTU-CVE-2021-22898 USN-5021-1
Ubuntu20.04:LTScurl7.68.0-1ubuntu2.6UBUNTU-CVE-2021-22898 USN-5021-1
UbuntuPro:14.04:LTScurl7.35.0-1ubuntu2.20+esm14UBUNTU-CVE-2021-22898 USN-5894-1
UbuntuPro:16.04:LTScurl7.47.0-1ubuntu2.19+esm3UBUNTU-CVE-2021-22898 USN-5021-2 USN-5894-1
Red Hatenterprise_linux:8::baseoscurl, libcurl, libcurl-devel and 6 more0:7.61.1-22.el8RHSA-2021:4511
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morecurl7.60.0-3.42.1SUSE-SU-2021:1809-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3curl7.66.0-4.17.1SUSE-SU-2021:1762-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSScurl7.37.0-70.66.1SUSE-SU-2021:14760-1
SUSELinux Enterprise Server 11-SECURITYcurl-openssl17.37.0-70.63.1SUSE-SU-2021:14735-1
SUSELinux Enterprise Server 11-SECURITYcurl-openssl17.37.0-70.66.1SUSE-SU-2021:14760-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 morecurl7.60.0-4.20.1SUSE-SU-2021:1786-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5curl7.60.0-11.18.1SUSE-SU-2021:1763-1
openSUSELeap 15.2curl, curl-mini7.66.0-lp152.3.18.1openSUSE-SU-2021:0808-1
openSUSELeap 15.3curl, curl-mini7.66.0-4.17.1openSUSE-SU-2021:1762-1
openSUSETumbleweedcurl7.79.1-1.1openSUSE-SU-2024:10582-1
AlmaLinux8curl, libcurl, libcurl-devel and 1 more7.61.1-22.el8ALSA-2021:4511
Rocky Linux8curl0:7.61.1-22.el8RLSA-2021:4511
Alpinev3.10curl7.66.0-r4ALPINE-CVE-2021-22898
Alpinev3.11curl7.67.0-r4ALPINE-CVE-2021-22898
Alpinev3.12, v3.13, v3.14 and 10 morecurl7.77.0-r0ALPINE-CVE-2021-22898
Azure Linux2curl7.76.0-5AZL-6359

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8curl-0:7.61.1-22.el8Fixed 2021-11-09RHSA-2021:4511
.NET Core 2.1 on Red Hat Enterprise Linuxrh-dotnet21-curlWill not fix
.NET Core 3.1 on Red Hat Enterprise Linuxrh-dotnet31-curlWill not fix
Red Hat Ceph Storage 2curlOut of support scope
Red Hat Enterprise Linux 6curlOut of support scope
Red Hat Enterprise Linux 7curlOut of support scope
Red Hat Enterprise Linux 9curlNot affected
Red Hat Software Collectionshttpd24-curlFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22898.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON