XML External Entity (XXE) Injection Affecting libexpat/libexpat package, versions [,2.4.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.43% (75th 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 Learn

Learn about XML External Entity (XXE) Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LIBEXPATLIBEXPAT-2369628
  • published26 Jan 2022
  • disclosed21 Jan 2014
  • creditUnknown

Introduced: 21 Jan 2014

CVE-2013-0340  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade libexpat/libexpat to version 2.4.0 or higher.

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection expat 2.1.0 and earlier does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.

CVSS Scores

version 3.1