GitHub Advisoryadvisory · Maven

GHSA-7g54-vgp6-jj5w XML External Entity Reference in Apache Sling

CRITICAL Published 2022-05-17 Modified 2022-11-03 Official page ↗
Aliases
CVE-2016-6798
Ecosystem
Maven
Packages
org.apache.sling:org.apache.sling.xss, org.apache.sling:org.apache.sling.xss.compat
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-611
Reviewed
2022-11-03

Affected packages

• Maven org.apache.sling:org.apache.sling.xss: < 1.0.12 → fixed in 1.0.12 • Maven org.apache.sling:org.apache.sling.xss.compat: < 1.1.0 → fixed in 1.1.0

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.

Related

Alias · CVE (1)

  • CVE-2016-6798 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… vulnerability

Weakness · CWE (1)

  • CWE-611 Improper Restriction of XML External Entity Reference weakness

References