Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2016-6798 EUVD-2022-2991GHSA-7g54-vgp6-jj5w

XML External Entity Reference in Apache Sling

Published Jul 19, 2017 · Updated Sep 16, 2024 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Sling prior to 1.0.12 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.sling:org.apache.sling.xss < 1.0.12 1.0.12 GHSA-7g54-vgp6-jj5w
Maven org.apache.sling:org.apache.sling.xss.compat < 1.1.0 1.1.0 GHSA-7g54-vgp6-jj5w

References