Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-42260 EUVD-2021-29236GHSA-x43j-m68c-2qxf

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 trigger…

Published Oct 11, 2021 · Updated Nov 4, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tinyxml 2.6.2-6 —
Debian 13 tinyxml 2.6.2-6 —
Debian 12 tinyxml 2.6.2-6 —
Debian 10 tinyxml 2.6.2-4+deb10u1 DLA-3130-1
Debian 9 tinyxml 2.6.2-4+deb9u1 DLA-2988-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS tinyxml 2.6.2-4+deb10u1build0.20.04.1 USN-6542-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS tinyxml 2.6.2-4ubuntu0.18.04.1~esm1 USN-6542-1
Ubuntu Pro 16.04 LTS tinyxml 2.6.2-3ubuntu0.1~esm1 USN-6542-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 tinyxml 2.6.2-3.3.1 openSUSE-SU-2021:3639-1
openSUSE Leap 15.2 tinyxml 2.6.2-lp152.4.3.1 openSUSE-SU-2021:1474-1
ReleasePackageFixed inAdvisory
Alpine v3.24 tinyxml 2.6.2-r2 —
Alpine v3.23 tinyxml 2.6.2-r2 —
Alpine v3.22 tinyxml 2.6.2-r2 —
Alpine v3.21 tinyxml 2.6.2-r2 —
Alpine v3.20 tinyxml 2.6.2-r2 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling tinyxml 2.6.2-r1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • vm2mv/tinyxml ★ 2 · Dec 4, 2024

    TinyXML 2.6.2 with fixes for CVE-2021-42260 and CVE-2023-34194

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 7

References