Loop with Unreachable Exit Condition ('Infinite Loop') Affecting tinyxml package, versions <2.6.2-r2


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.21% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE321-TINYXML-8489655
  • published6 Dec 2024
  • disclosed11 Oct 2021

Introduced: 11 Oct 2021

CVE-2021-42260  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 tinyxml to version 2.6.2-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tinyxml package and not the tinyxml package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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.

CVSS Scores

version 3.1