RCE in Osgeo Geonetwork
CVE-2021-28398
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.015, 73.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Osgeo Geonetwork — versions 4.0.0
Weakness classification (CWE)
References
- geonetwork-opensource.org/ (Product)
- github.com/geonetwork/core-geonetwork (Third Party Advisory)
- geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.ht… (Patch, Release Notes, Vendor Advisory)
- github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf (Patch, Third Party Advisory, Mitigation)