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

    Threat Intelligence

    EPSS
    0.2% (58th 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 ID SNYK-JAVA-COMTWELVEMONKEYSIMAGEIO-2316763
  • published 13 Dec 2021
  • disclosed 7 Dec 2021
  • credit MOGWAI LABS GmbH, Timo Müller

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
Expand this section

Snyk

7.3 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical