CVE-2024-23673 Apache Sling Servlets Resolver: Malicious code execution via path traversal

High 8.5 Published Updated

Attackers with repository write access can execute malicious code via path traversal in Apache Sling Servlets Resolver.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23673?

CVE-2024-23673 is a high-severity path traversal vulnerability in Apache Sling Servlets Resolver, published on 6 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Malicious code execution via path traversal in Apache Software Foundation Apache Sling Servlets Resolver.This issue affects all version of Apache Sling Servlets Resolver before 2.11.0. However, whether a system is vulnerable to this attack depends on the exact configuration of the system. If the system is vulnerable, a user with write access to the repository might be able to trick the Sling Servlet Resolver to load a previously uploaded script. 

Users are recommended to upgrade to version 2.11.0, which fixes this issue. It is recommended to upgrade, regardless of whether your system configuration currently allows this attack or not.

Weakness: CWE-22

Which versions are affected by CVE-2024-23673?

2 open source packages ship an affected version, including org.apache.sling:org.apache.sling.servlets.resolver. It affects 1 product.

PackageAffectedFixed in
org.apache.sling:org.apache.sling.servlets.resolver MavenAll versions2.11.0
org.apache.sling:org.apache.sling.servlets.resolver MavenAll versions2.11.0

Products include Apache Sling Servlets Resolver.

How do I fix CVE-2024-23673?

Upgrade org.apache.sling:org.apache.sling.servlets.resolver to 2.11.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-23673 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-23673 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-h2rq-qhr7-53gm.

Is CVE-2024-23673 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free