CVE-2026-63219 + CVE-2026-58400 | GeoNetwork PreAuth RCE Chain PoC
# GeoNetwork PreAuth RCE - CVE-2026-63219 + CVE-2026-58400
A proof-of-concept exploit for an unauthenticated remote code execution chain in GeoNetwork versions up to and including 4.4.11.0.
---
## Overview
GeoNetwork is an open-source geospatial metadata catalog built on Java/Spring. This exploit chains two vulnerabilities to achieve unauthenticated RCE:
| CVE | Type | CVSS | Component |
|-----|------|------|-----------|
| CVE-2026-63219 | Missing authorization on formatter upload | 8.6 | `FormatterAdminApi` |
| CVE-2026-58400 | Saxon XSLT Java extension execution | 9.1 | Saxon-HE processor |
**Affected versions:** GeoNetwork <= 4.4.11.0
**Authentication required:** None
**Network access required:** Yes (HTTP)
---
## Vulnerability Details
### CVE-2026-63219 - Unauthenticated Formatter Upload
`FormatterAdminApi.uploadFormatter()` is missing the `@PreAuthorize` annotation that the rest of the admin API endpoints use. This means any unauthenticated user can POST a `.xsl` file to `/geonetwork/srv/api/formatters`.
Uploaded files are stored at:
```
/var/lib/geonetwork/data/formatter/<name>/view.xsl
```
The formatter name (and therefore the trigger path) is derived directly from the uploaded filename.
One non-obvious requirement: the request **must** include `Accept: application/json`. Without it, GeoNetwork's dispatcher returns a 500 "Service not found" before the upload handler is reached.
### CVE-2026-58400 - Saxon XSLT Java Extension RCE
GeoNetwork initializes the Saxon-HE XSLT processor with `ALLOW_EXTERNAL_FUNCTIONS=true`. Saxon's Java extension mechanism allows binding arbitrary Java class namespaces inside an XSL stylesheet:
```xml
xmlns:rt="java:java.lang.Runtime"
```
With this, `java.lang.Runtime.exec()` becomes callable directly from XSL, enabling OS command execution when a formatter is triggered.
Formatters are triggered via:
```
GET /geonetwork/srv/api/records/{UUID}/formatters/{formatterName}
```
A valid metadata record UUID is require