CVE Watchtower

CVE-2026-129241org.geotools:gt-xml Path Traversal

NVD

Vulnerability Summary

`SchemaCache` stores downloaded XML schemas under a cache directory, using the host and path of the schema URL as the file location. The resolved location was not checked to stay inside the cache directory, so a schema URL containing `../` path segments could write the downloaded content to any location writable by the Java process. Impact Any application that lets an attacker influence a schema URL resolved through `SchemaCache` (for example a `schemaLocation` in an XML document or an app-schema mapping file) can have arbitrary content written to the file system, with parent directories created as needed. In a servlet container this can lead to remote code execution, for example by writing a JSP into a web application directory. It can also overwrite configuration files or cached schemas used by later requests. Exploitation requires schema downloading to be enabled for the cache and the attacker to control the content served from the schema URL. Details `SchemaCache.resolveLocation()` appended the URL path returned by `SchemaResolver.getSimpleHttpResourcePath()` to the cache directory and wrote the downloaded bytes to the resulting file. The canonical path of the destination was not compared with the cache directory, and `store()` created any missing parent directories. Mitigation Only process XML documents and mapping files from trusted sources, or create the `SchemaCache` with downloading disabled (so only schemas already present in the cache directory are used) ```java SchemaCache cache = new SchemaCache(cacheDirectory, false); SchemaResolver resolver = new SchemaResolver(cache); ``` Caches configured automatically (for example an `app-schema-cache` directory, or the `schema.cache.dir` system property) always allow downloading. Applications can turn off automatic configuration and supply their own cache: ```java SchemaCache.disableAutomaticConfiguration(); ``` Resolution `SchemaCache.resolveLocation()` now rejects locations that resolve outside the cache directory. GeoTools 33.7, 34.6, 35.2 References https://osgeo-org.atlassian.net/browse/GEOT-7956 * https://github.com/geotools/geotools/pull/5826
Severity Level
HIGH(8.1)
Published Date
Nov 17, 2026
Last Modified
Nov 17, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
The product allows user input to control or influence paths or file names that are used in filesystem operations.
CVSS v3.1 Base Metrics — Score 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • org.geotools:gt-xml >= 35.0, <= 35.1
  • org.geotools:gt-xml >= 34.0, <= 34.5
  • org.geotools:gt-xml <= 33.6
Patched Versions
  • org.geotools:gt-xml 35.2
  • org.geotools:gt-xml 34.6
  • org.geotools:gt-xml 33.7

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run org.geotools:gt-xml and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 17, 2026Published
  • Nov 17, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new org.geotools:gt-xml CVEsYou are reading CVE-2026-129241. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 24, 2026 14:01 UTC