CVEfocus › CVE database › CVE-2021-42260

CVE-2021-42260

CVSS 7.5 HighEPSS 3.4% (higher than 90% of CVEs)Published 2021-10-11Updated 2025-11-04Assigner: mitre

TinyXML through 2.6.2 has an infinite loop in TiXmlParsingData::Stamp in tinyxmlparser.cpp via the TIXML_UTF_LEAD_0 case. It can be triggered by a crafted XML message and leads to a denial of service.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed
3Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04tinyxmlNot affected
vulnerable_code_not_present
Ubuntu 20.04tinyxmlFixed2.6.2-4+deb10u1build0.20.04.1UBUNTU-CVE-2021-42260
Ubuntu 18.04tinyxmlFix pending2.6.2-4ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42260
Ubuntu 16.04tinyxmlFix pending2.6.2-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42260
Ubuntu 14.04tinyxmlFix pending
Debian 14tinyxmlFixed2.6.2-6DEBIAN-CVE-2021-42260
Debian 13tinyxmlFixed2.6.2-6DEBIAN-CVE-2021-42260
Debian 12tinyxmlFixed2.6.2-6DEBIAN-CVE-2021-42260
Alpine Linux 3.24tinyxmlFixed2.6.2-r2ALPINE-CVE-2021-42260
Alpine Linux 3.23tinyxmlFixed2.6.2-r2ALPINE-CVE-2021-42260
Alpine Linux 3.22tinyxmlFixed2.6.2-r2ALPINE-CVE-2021-42260
Alpine Linux 3.21tinyxmlFixed2.6.2-r2ALPINE-CVE-2021-42260
Alpine Linux 3.20tinyxmlFixed2.6.2-r2ALPINE-CVE-2021-42260

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.