CRITICAL 9.8

CVE-2021-23792

External Entity Reference in TwelveMonkeys ImageIO

Description

The package com.twelvemonkeys.imageio:imageio-metadata before version 3.7.1 is 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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.twelvemonkeys.imageio » imageio-metadata
< 3.7.1
3.7.1

Blast radius

1affected artifacts
24affected versions
1,608dependent artifacts (est.)
371,487dependent versions

44% of the dependent artifacts (711) still pull an affected version in their latest release.

DepthDependent versions
Direct
524
2 hops
2,790
3 hops
18,290
4 hops
194,256
5 hops
105,385
6 hops
50,242

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.