WaratekVRT Sign in

CVE-2016-6798 Apache Sling

Affected softwareApache Sling
Severity9.8 Critical CVSS 3.0 2 scores
Fixed in1.0.12
WeaknessXML external entity (XXE) (CWE-611)
Published19 Jul 2017
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 9 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 3.7% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.

How to mitigate CVE-2016-6798

Upgrade Apache Sling to 1.0.12 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 9.8 CRITICAL CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.sling:org.apache.sling.xss 0 1.0.12 unbounded
org.apache.sling:org.apache.sling.xss.compat 0 1.1.0 unbounded

Products and versions

3 products, 3 version entries
SourceVendorProductSchemeAffected versions
nvd apache sling generic ≤ 1.0.10
osv org.apache.sling org.apache.sling.xss generic < 1.0.12
osv org.apache.sling org.apache.sling.xss.compat generic < 1.1.0

References

URLTags
https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529 WEB
https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-6798 WEB
https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0@%3Cdev.sling.apache.org%3E WEB
http://www.securityfocus.com/bid/99873 WEB
https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0%40%3Cdev.sling.apache.org%3E

Timeline

Published2017-07-19By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.