Vulnerability record · CVE-2021-28398 · published 5 September 2022
CVE-2021-28398: Osgeo geonetwork os command injection vulnerability
Osgeo · Geonetwork
A privileged attacker in GeoNetwork before 3.12.0 and 4.x before 4.0.4 can use the directory harvester before-script to execute arbitrary OS commands remotely on the hosting infrastructure. A User Administrator or Administrator account is required to perform this. This occurs in the runBeforeScript method in harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/localfilesystem/LocalFilesystemHarvester.java. The earliest affected version is 3.4.0.
Description
A privileged attacker in GeoNetwork before 3.12.0 and 4.x before 4.0.4 can use the directory harvester before-script to execute arbitrary OS commands remotely on the hosting infrastructure. A User Administrator or Administrator account is required to perform this. This occurs in the runBeforeScript method in harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/localfilesystem/LocalFilesystemHarvester.java. The earliest affected version is 3.4.0.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://geonetwork-opensource.org/ | Product |
| https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html | PatchRelease NotesVendor Advisory |
| https://github.com/geonetwork/core-geonetwork | Third Party Advisory |
| https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf | MitigationPatchThird Party Advisory |
| https://geonetwork-opensource.org/ | Product |
| https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html | PatchRelease NotesVendor Advisory |
| https://github.com/geonetwork/core-geonetwork | Third Party Advisory |
| https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf | MitigationPatchThird Party Advisory |
Track CVE-2021-28398 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-28398), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.