漏洞描述
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.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。