GHSA-MGJV-WP78-CCRQ
Local file probing via file:// schemaLocation during strict schema validation
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-MGJV-WP78-CCRQ divulgada · CVSS 5.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
When GeoTools validates an XML document, an `xsi:schemaLocation` containing a `file://` URI was opened without passing through the configured `EntityResolver`. An application that relies on a resolver such as `PreventLocalEntityResolver` to block local file access could be used to probe the local file system.
Impact
Differences in the resulting errors show whether a local file exists and whether it is well-formed XML. File contents are not disclosed.
Applications that parse or validate untrusted XML with validation enabled are affected.
Details
`Schemas.validateImportsIncludes()` walked the schema locations referenced by a document and opened each one directly, without passing it through the `EntityResolver` set on the `Parser`. The resolver was therefore not applied to the top level schema location during validation.
Mitigation
Do not validate untrusted XML documents, parsing them with validation and strict mode disabled:
Parser parser = new Parser(configuration);
parser.setValidating(false);
parser.setStrict(false);
parser.setEntityResolver(PreventLocalEntityResolver.INSTANCE);
Object result = parser.parse(input);Avoid calling `Parser.validate(...)` on untrusted input.
Resolution
Every schema location visited during validation now goes through the entity resolver, and XInclude is disabled the same way for SAX and DOM parser factories.
- GeoTools 33.7, 34.6, 35.2
References
- https://osgeo-org.atlassian.net/browse/GEOT-7975
- https://github.com/geoserver/geoserver/security/advisories/GHSA-rg89-jmrw-x26f
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Mavenorg.geotools.xsd:gt-xsd-core |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/geotools/geotools/security/advisories/GHSA-mgjv-wp78-ccrqLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
