XML External Entity (XXE) Injection Affecting com.twelvemonkeys.imageio:imageio-metadata package, versions [,3.7.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.2% (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 Learn

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

Start learning
  • Snyk IDSNYK-JAVA-COMTWELVEMONKEYSIMAGEIO-2316763
  • published13 Dec 2021
  • disclosed7 Dec 2021
  • creditMOGWAI LABS GmbH, Timo Müller

Introduced: 7 Dec 2021

CVE-2021-23792  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade com.twelvemonkeys.imageio:imageio-metadata to version 3.7.1 or higher.

Overview

com.twelvemonkeys.imageio:imageio-metadata is an ImageIO metadata module.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection due to an insecurely initialized XML parser for reading XMP Metadata. An attacker can exploit this vulnerability if they are able to supply a file (e.g. when an online profile picture is processed) with a malicious XMP segment. If the XMP metadata of the uploaded image is parsed, then the XXE vulnerability is triggered.

References

CVSS Scores

version 3.1