Every CVE Search/ Get API key

CVE-2021-42260

TinyXML through 2.6.2 has an infinite loop in TiXmlParsingData::Stamp in tinyxmlparser.cpp via...

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

3.38%Up 2.9 points since Oct 12, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-42260
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-835
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-42260
Updated
2026-11-02
EUVDEUVD-2021-29236 No score

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.

Record
EUVD-2021-29236
Updated
2026-11-02
GitHub AdvisoriesGHSA-x43j-m68c-2qxf 7.5

TinyXML through 2.6.2 has an infinite loop in TiXmlParsingData::Stamp in tinyxmlparser.cpp via...

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.

Record
GHSA-x43j-m68c-2qxf
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
OSVALPINE-CVE-2021-42260 7.5

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.

Record
ALPINE-CVE-2021-42260
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 7.5

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.

Record
CVE-2021-42260
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2021-42260 7.5

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.

Record
DEBIAN-CVE-2021-42260
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVOESA-2022-1521 7.5

tinyxml security update

TinyXML parses an XML document, and builds from that a Document Object Model (DOM) that can be read, modified, and saved. XML is a very structured and convenient format. All those random file formats created to store application data can all be replaced with XML. One parser for everything.

Security Fix(es):

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.(CVE-2021-42260)

Record
OESA-2022-1521
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-42260 7.5

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.

Record
UBUNTU-CVE-2021-42260
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2021-0514 No score

Updated tinyxml packages fix security vulnerability

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. (CVE-2021-42260)

Record
MGASA-2021-0514
Updated
2026-11-02
OSVopenSUSE-SU-2021:1474-1 No score

Security update for tinyxml

This update for tinyxml fixes the following issues:

  • CVE-2021-42260: Fixed an infinite loop for inputs containing the sequence 0xEF0x00 (bsc#1191576)

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2021:1474-1
Updated
2026-11-02
OSVopenSUSE-SU-2021:3639-1 No score

Security update for tinyxml

This update for tinyxml fixes the following issues:

  • CVE-2021-42260: Fixed an infinite loop for inputs containing the sequence 0xEF0x00 (bsc#1191576)
Record
openSUSE-SU-2021:3639-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:13524-1 No score

libtinyxml0-2.6.2-12.1 on GA media

These are all security issues fixed in the libtinyxml0-2.6.2-12.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13524-1
Updated
2026-11-02
OSVUSN-6542-1 No score

tinyxml vulnerability

Wang Zhong discovered that TinyXML incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service.

Record
USN-6542-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tinyxml
Alpine:v3.20
2.3.2 up to 2.6.2-r2
2.6.2-r2
tinyxml
Alpine:v3.21
2.3.2 up to 2.6.2-r2
2.6.2-r2
tinyxml
Alpine:v3.22
2.3.2 up to 2.6.2-r2
2.6.2-r2
tinyxml
Alpine:v3.23
2.3.2 up to 2.6.2-r2
2.6.2-r2
tinyxml
Alpine:v3.24
2.3.2 up to 2.6.2-r2
2.6.2-r2
tinyxml
Debian:12
before 2.6.2-6
2.6.2-6
tinyxml
Debian:13
before 2.6.2-6
2.6.2-6
tinyxml
Debian:14
before 2.6.2-6
2.6.2-6
tinyxml
Debian:9
before 2.6.2-4+deb9u1, plus listed versions
2.6.2-4
2.6.2-4+deb9u1
tinyxml
Debian:10
before 2.6.2-4+deb10u1, plus listed versions
2.6.2-4
2.6.2-4+deb10u1
Show 9 moreShow less
Affected packages
PackageAffectedFixed
tinyxml
Mageia:8
before 2.6.2-12.1.mga8
2.6.2-12.1.mga8
tinyxml
openEuler:20.03-LTS-SP1
before 2.6.2-22.oe1
2.6.2-22.oe1
tinyxml
openEuler:20.03-LTS-SP2
before 2.6.2-22.oe1
2.6.2-22.oe1
tinyxml
openEuler:20.03-LTS-SP3
before 2.6.2-22.oe1
2.6.2-22.oe1
tinyxml
Ubuntu:Pro:16.04:LTS
before 2.6.2-3ubuntu0.1~esm1, plus listed versions
2.6.2-3
2.6.2-3ubuntu0.1~esm1
tinyxml
Ubuntu:Pro:18.04:LTS
before 2.6.2-4ubuntu0.18.04.1~esm1, plus listed versions
2.6.2-4
2.6.2-4ubuntu0.18.04.1~esm1
tinyxml
Ubuntu:20.04:LTS
before 2.6.2-4+deb10u1build0.20.04.1, plus listed versions
2.6.2-42.6.2-4build1
2.6.2-4+deb10u1build0.20.04.1
tinyxml
openSUSE:Leap 15.2
before 2.6.2-lp152.4.3.1
2.6.2-lp152.4.3.1
tinyxml
openSUSE:Leap 15.3
before 2.6.2-3.3.1
2.6.2-3.3.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubvm2mv/tinyxml2024-12-04

History

History
RecordedChangedSources
facts
affected, aliases, referencesOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-42260 is a high vulnerability (CVSS 7.5) in Tinyxml Project Tinyxml, published October 11, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 3.38%, the 88th percentile. Fixed in tinyxml 2.6.2-r2.

References

Show 16 moreShow less
MoveEnter Open