CVE-2022-45064
JSON

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 packageVersionsReported by
Apache Software Foundation Apache Sling Enginefrom before 2.14.0CVE List
apache slingbefore 2.14.0CVE List
org.apache.sling:org.apache.sling.engine (Maven)before 2.14.0GitHub Advisory Database
apache apache_sling_enginebefore 2.14.0NVD

All scores

apache8.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
GitHub8.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2022-45064 changed 2024-10-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-mg46-f9h5-g27x changed 2023-11-08CC-BY-4.0
NVDCVE-2022-45064 changed 2026-06-17Public domain