GeoNetwork is widely used by government agencies, research institutions, and private organizations to manage and share spatial data infrastructure. It provides an open-source cataloging framework for spatially referenced resources, facilitating the discovery and use of geographic data and related information. Organizations implement GeoNetwork to enhance data sharing through standardized protocols and metadata management. The platform's capabilities include data recovery via web services, metadata creation, and map visualization. By utilizing GeoNetwork, users can improve collaboration and foster integration of GIS resources. It's critical for managing SDIs efficiently and fostering open geographic data sharing.
The vulnerability in question relates to missing authorization for a specific API endpoint in GeoNetwork. This flaw occurs because the authorization check '@PreAuthorize("hasAuthority('UserAdmin')")' is absent in the Formatter upload API. Consequently, unauthenticated remote attackers are able to upload arbitrary formatter files. The threat is exacerbated by the fact that it combines with another vulnerability, CVE-2026-58400, which can result in remote code execution. Thus, this vulnerability requires patches for both authorization and safe code execution. It primarily poses a risk of unauthorized file uploads, potentially altering the server's files.
Technically, the vulnerability resides in the 'addFormatter' method within the 'FormatterAdminApi' of GeoNetwork. The vulnerable endpoint is '/srv/api/formatters,' allowing POST requests to handle multipart/form-data uploads. Without proper authorization checks, this endpoint dangerously permits unauthenticated users to upload `.xsl` and `.zip` files. This exposes the server to a number of risks, including unauthorized modifications and potential execution of malicious scripts. Severities come into play when such an endpoint can further result in unauthorized code executionposing a higher threat level.
When successfully exploited, this vulnerability can lead to significant unauthorized changes within a server's file structure. Attackers can upload malicious files, potentially paving the way for remote code execution. This could result in not only data tampering but also complete server compromise. Such actions expose affected systems to data breaches, loss of data integrity, and denial of service. Moreover, it could catalyze broader security breaches within the network infrastructure of organizations utilizing GeoNetwork.
REFERENCES
- Upgrade GeoNetwork to version 4.4.12 or 4.2.17, or later.
- Implement role-based access controls to ensure only authorized users can upload files.
- Restrict file types and ensure input is validated before processing any uploads.
- Regularly audit your API endpoints for proper authorization checks.
- Monitor logs for unauthorized access attempts and take preemptive measures.
Get AI-powered remediation steps tailored to your asset.
Try AI Solutions →