CVE-2016-6798 — XML External Entity Reference in...
XML External Entity Reference in Apache Sling
Summary
Advisory Timeline
- First published May 17, 2022 (1609 days ago).
- Last revised February 16, 2024 — 640 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.1.0 for org.apache.sling:org.apache.sling.xss.compat -->
<!-- Update pom.xml dependency version to 1.0.12 for org.apache.sling:org.apache.sling.xss -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: maven (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.apache.sling:org.apache.sling.xss.compat | maven | 1.0.0 | 1.1.0 |
| org.apache.sling:org.apache.sling.xss | maven | 1.0.0, 1.0.2, 1.0.4, 1.0.6 (+1 more) | 1.0.12 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-6798ADVISORY
- https://github.com/apache/sling-org-apache-sling-xss/commit/de32b144ad2be3367559f6184d560db42a220529WEB
- https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-6798WEB
- https://lists.apache.org/thread.html/b72c3a511592ec70729b3ec2d29302b6ce87bbeab62d4745617a6bd0@%3Cdev.sling.apache.org%3EWEB
- https://www.securityfocus.com/bid/99873WEB
Frequently Asked Questions
- What is CVE-2016-6798?
- XML External Entity Reference in Apache Sling This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2016-6798?
- CVE-2016-6798 affects org.apache.sling:org.apache.sling.xss.compat and org.apache.sling:org.apache.sling.xss. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-6798 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2022-47937CRITICAL
Apache Sling Commons JSON bundle vulnerable to Improper Input Validation
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies