CVE-2022-45064
CRITICAL 9.0CVSS 3.1Apache Sling Engine vulnerable to cross-site scripting (XSS) that can lead to privilege escalation
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.
- Published
- 13 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-mg46-f9h5-g27x
- Sources
- NVDJSONOSV GHSA-mg46-f9h5-g27xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | security@apache.org (Secondary) | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | apache_sling_enginecpe:2.3:a:apache:apache_sling_engine:*:*:*:*:*:*:*:* |
< 2.14.0 | 2.14.0 |
| OSV | Maven | org.apache.sling:org.apache.sling.engine | < 2.14.0 | 2.14.0 |
References
- http://www.openwall.com/lists/oss-security/2023/04/18/6 · Mailing List, WEB
- https://lists.apache.org/thread/hhp611hltby3whk03vx2mv7cmy3vs0ok · Mailing List, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-45064 · ADVISORY
- https://github.com/apache/sling-org-apache-sling-engine · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 13 Apr 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Apr 2023)