CVE-2021-42260
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.
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
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 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
tinyxmlAlpine:v3.20 |
2.3.2 up to 2.6.2-r2 | 2.6.2-r2 |
tinyxmlAlpine:v3.21 |
2.3.2 up to 2.6.2-r2 | 2.6.2-r2 |
tinyxmlAlpine:v3.22 |
2.3.2 up to 2.6.2-r2 | 2.6.2-r2 |
tinyxmlAlpine:v3.23 |
2.3.2 up to 2.6.2-r2 | 2.6.2-r2 |
tinyxmlAlpine:v3.24 |
2.3.2 up to 2.6.2-r2 | 2.6.2-r2 |
tinyxmlDebian:12 |
before 2.6.2-6 | 2.6.2-6 |
tinyxmlDebian:13 |
before 2.6.2-6 | 2.6.2-6 |
tinyxmlDebian:14 |
before 2.6.2-6 | 2.6.2-6 |
tinyxmlDebian:9 |
before 2.6.2-4+deb9u1, plus listed versions 2.6.2-4 |
2.6.2-4+deb9u1 |
tinyxmlDebian:10 |
before 2.6.2-4+deb10u1, plus listed versions 2.6.2-4 |
2.6.2-4+deb10u1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tinyxmlMageia:8 |
before 2.6.2-12.1.mga8 | 2.6.2-12.1.mga8 |
tinyxmlopenEuler:20.03-LTS-SP1 |
before 2.6.2-22.oe1 | 2.6.2-22.oe1 |
tinyxmlopenEuler:20.03-LTS-SP2 |
before 2.6.2-22.oe1 | 2.6.2-22.oe1 |
tinyxmlopenEuler:20.03-LTS-SP3 |
before 2.6.2-22.oe1 | 2.6.2-22.oe1 |
tinyxmlUbuntu:Pro:16.04:LTS |
before 2.6.2-3ubuntu0.1~esm1, plus listed versions 2.6.2-3 |
2.6.2-3ubuntu0.1~esm1 |
tinyxmlUbuntu: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 |
tinyxmlUbuntu: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 |
tinyxmlopenSUSE:Leap 15.2 |
before 2.6.2-lp152.4.3.1 | 2.6.2-lp152.4.3.1 |
tinyxmlopenSUSE: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.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | vm2mv/tinyxml | 2024-12-04 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE 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
sourceforge.net/p/tinyxml/bugs/141
lists.debian.org/debian-lts-announce/2022/04/msg00019.html
lists.debian.org/debian-lts-announce/2022/09/msg00041.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4QCR5PIOBGDIDS6SYRESTMDJSEDFSCOE
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HOMBSHRIW5Q34SQSXYURYAOYDZD2NQF6
lists.fedoraproject.org/archives/list/[email protected]/message/HOMBSHRIW5Q34SQSXYURYAOYDZD2NQF6
Show 16 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/4QCR5PIOBGDIDS6SYRESTMDJSEDFSCOE
nvd.nist.gov/vuln/detail/CVE-2021-42260
github.com/advisories/GHSA-x43j-m68c-2qxf
security.alpinelinux.org/vuln/CVE-2021-42260
security-tracker.debian.org/tracker/CVE-2021-42260
advisories.mageia.org/MGASA-2021-0514.html
bugs.mageia.org/show_bug.cgi?id=29642
lists.opensuse.org/archives/list/[email protected]/thread/2MO2YQSAKB3PM3TWSYUR2JCZND3ENJVZ
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1521
ubuntu.com/security/CVE-2021-42260
ubuntu.com/security/notices/USN-6542-1
cve.org/CVERecord?id=CVE-2021-42260
lists.opensuse.org/archives/list/[email protected]/thread/F2M3VLHPBVPXWEAQR5CPGGUOGBI3B2GJ
bugzilla.suse.com/1191576
suse.com/security/cve/CVE-2021-42260
suse.com/security/cve/CVE-2023-34194