8.0high
Apache Sling Engine: Include-based XSS
- Severity
- 8.0high CVSS:3.1 by apache
- Exploit likelihood
- 1.09% (higher than 65% of CVEs)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-mg46-f9h5-g27x
Description
The SlingRequestDispatcher doesn't correctly implement the RequestDispatcher API resulting in a generic type of include-based cross-site scripting issues on the Apache Sling level. The vulnerability is exploitable by an attacker that is able to include a resource with specific content-type and control the include path (i.e. writing content). The impact of a successful attack is privilege escalation to administrative power. Please update to Apache Sling Engine >= 2.14.0 and enable the "Check Content-Type overrides" configuration option.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Sling Engine | from before 2.14.0 | CVE List |
| apache sling | before 2.14.0 | CVE List |
| org.apache.sling:org.apache.sling.engine (Maven) | before 2.14.0 | GitHub Advisory Database |
| apache apache_sling_engine | before 2.14.0 | NVD |
All scores
| apache | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
The SlingRequestDispatcher doesn't correctly implement the RequestDispatcher API resulting in a generic type of include-based cross-site scripting issues on the Apache Sling level. The vulnerability is exploitable by an attacker that is able to include a resource with specific content-type and control the include path (i.e. writing content). The impact of a successful attack is privilege escalation to administrative power. Please update to Apache Sling Engine >= 2.14.0 and enable the "Check Content-Type overrides" configuration option.
GitHub Advisory Database
The SlingRequestDispatcher doesn't correctly implement the RequestDispatcher API resulting in a generic type of include-based cross-site scripting issues on the Apache Sling level. The vulnerability is exploitable by an attacker that is able to include a resource with specific content-type and control the include path (i.e. writing content). The impact of a successful attack is privilege escalation to administrative power.
Please update to Apache Sling Engine version 2.14.0 or newer and enable the "Check Content-Type overrides" configuration option.
References
| https://lists.apache.org/thread/hhp611hltby3whk03vx2mv7cmy3vs0ok | mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2023/04/18/6 | mailing-list, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-45064 | advisory | |
| https://github.com/apache/sling-org-apache-sling-engine | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-45064 changed 2024-10-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mg46-f9h5-g27x changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-45064 changed 2026-06-17 | Public domain |