# CVE-2022-45064: Apache Sling Engine: Include-based XSS

- Severity: High 8.0 (CVSS:3.1, scored by apache) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 65% of CVEs (2026-11-30)
- Published: 2023-04-13T10:01:14.502Z
- Modified: 2026-06-17T05:09:17.027Z
- Also known as: GHSA-mg46-f9h5-g27x
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Sling Engine: from   before 2.14.0
- apache sling: before 2.14.0
- org.apache.sling:org.apache.sling.engine (Maven): before 2.14.0
- apache apache_sling_engine: before 2.14.0

## Every score

- apache: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2022-45064](https://www.cve.org/CVERecord?id=CVE-2022-45064), CVE Terms of Use, modified 2024-10-17
- GitHub Advisory Database: [GHSA-mg46-f9h5-g27x](https://github.com/advisories/GHSA-mg46-f9h5-g27x), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-45064](https://nvd.nist.gov/vuln/detail/CVE-2022-45064), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-45064 · Whole record: https://cve.day/CVE-2022-45064.json · Rebuilt by cve.day 2026-11-25T22:58:19.094Z
