CVE Vulnerabilities

CVE-2021-42260

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: Oct 11, 2021 | Modified: Nov 04, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Affected Software

NameVendorStart VersionEnd Version
TinyxmlTinyxml_project2.3.2 (including)2.6.2 (including)
TinyxmlTinyxml_project2.3.0-beta (including)2.3.0-beta (including)
TinyxmlTinyxml_project2.3.1-beta (including)2.3.1-beta (including)
TinyxmlUbuntubionic*
TinyxmlUbuntuesm-apps/bionic*
TinyxmlUbuntuesm-apps/focal*
TinyxmlUbuntuesm-infra/xenial*
TinyxmlUbuntufocal*
TinyxmlUbuntuhirsute*
TinyxmlUbuntuimpish*
TinyxmlUbuntukinetic*
TinyxmlUbuntutrusty*
TinyxmlUbuntuxenial*

References