CVE-2023-49735
Apache Tiles: Unvalidated input may lead to path traversal and XXE
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts-tiles | >= 1.3.0, <= 1.3.10 | - |
| org.apache.tiles » tiles-core | >= 2.0.0 | - |
| struts » struts | >= 1.1, <= 1.2.9 | - |
Blast radius
100% of the dependent artifacts (6,941) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,025 |
| 2 hops | 33,756 |
| 3 hops | 108,524 |
| 4 hops | 240,353 |
| 5 hops | 244,253 |
| 6 hops | 245,032 |
Most used dependents
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.springframework » spring-web12,086 usages
- org.apache.maven.plugins » maven-checkstyle-plugin11,720 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.springframework » spring-webmvc7,538 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- org.codehaus.mojo » versions-maven-plugin5,371 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.springframework » spring-orm3,194 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.apache.rat » apache-rat-plugin2,568 usages
- org.apache.maven.plugins » maven-pmd-plugin2,252 usages
- org.apache.maven.plugins » maven-project-info-reports-plugin1,458 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-49735 | nvd.nist.gov |
| Package | apache/tiles | github.com |
| Web | thread/8ktm4vxr6vvc1qsxh6ft8jzmom1zl65p | lists.apache.org |
