CVE-2023-49735 Apache Tiles: Unvalidated input may lead to path traversal and XXE

High 7.5 Published Updated

Unvalidated session attribute in Apache Tiles allows path traversal and XXE, potentially leading to data exposure or code execution in unsupported versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-49735?

CVE-2023-49735 is a high-severity path traversal vulnerability in Apache Tiles, published on 30 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

** UNSUPPORTED WHEN ASSIGNED **

The value set as the DefaultLocaleResolver.LOCALE_KEY attribute on the session was not validated while resolving XML definition files, leading to possible path traversal and eventually SSRF/XXE when passing user-controlled data to this key. Passing user-controlled data to this key may be relatively common, as it was also used like that to set the language in the 'tiles-test' application shipped with Tiles.

This issue affects Apache Tiles from version 2 onwards.

NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Weakness: CWE-22

Which versions are affected by CVE-2023-49735?

6 open source packages ship an affected version, including org.apache.struts:struts-tiles, org.apache.tiles:tiles-core and struts:struts. It affects 1 product.

PackageAffectedFixed in
org.apache.struts:struts-tiles MavenFrom 1.3.0 to 1.3.10None
org.apache.struts:struts-tiles MavenFrom 1.3.0 to 1.3.10None
org.apache.tiles:tiles-core MavenFrom 2.0.0None
org.apache.tiles:tiles-core MavenFrom 2.0.0None
struts:struts MavenFrom 1.1 to 1.2.9None
struts:struts MavenFrom 1.1 to 1.2.9None

Products include Apache Tiles.

How do I fix CVE-2023-49735?

No fix has been published for CVE-2023-49735 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2023-49735 being exploited?

There is no known exploitation of CVE-2023-49735 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-49735, GHSA-qw4h-3xjj-84cc, UBUNTU-CVE-2023-49735.

Is CVE-2023-49735 in your software?

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

Check your SBOMs for free