Vulnerabilities · 2021 · Osgeo
CVE-2021-28398
Osgeo Geonetwork vulnerability
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.
Affected products
Geonetwork. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Osgeo Geonetwork runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html · Patch
- github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf · Mitigation
- github.com/geonetwork/core-geonetwork · Third Party Advisory
- geonetwork-opensource.org/
- nvd.nist.gov/vuln/detail/CVE-2021-28398
- cve.org/CVERecord?id=CVE-2021-28398
More vulnerabilities in Osgeo products
CVE-2025-59431CVE-2025-30220CVE-2025-30145CVE-2025-29480CVE-2025-27505CVE-2024-40625CVE-2024-38524CVE-2024-35230All 41
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.