CVE-2021-28398: OSGeo Geonetwork
High severity, CVSS 7.2. EPSS: 1.4% chance of exploitation in the next 30 days.
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
- OSGeo Geonetwork: from 3.4.0, before 3.12.0 (fixed in 3.12.0); from 4.0.0, before 4.0.4 (fixed in 4.0.4); version 4.0.0 only
Published 2022-09-05. Last modified 2026-06-17.