CRITICAL 9.8

CVE-2016-6798

XML External Entity Reference in Apache Sling

Description

In the XSS Protection API module before 1.0.12 in Apache Sling, the method XSS.getValidXML() uses an insecure SAX parser to validate the input string, which allows for XXE attacks in all scripts which use this method to validate user input, potentially allowing an attacker to read sensitive data on the filesystem, perform same-site-request-forgery (SSRF), port-scanning behind the firewall or DoS the application.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.sling » org.apache.sling.xss
< 1.0.12
1.0.12
org.apache.sling » org.apache.sling.xss.compat
< 1.1.0
1.1.0

Blast radius

2affected artifacts
6affected versions
25dependent artifacts (est.)
156dependent versions

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

DepthDependent versions
Direct
21
2 hops
53
3 hops
42
4 hops
40

Most used dependents

Computed from the dependency graph of build 20261124.0621 (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.