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.
References (4)
Core 4
Core References
Product x_refsource_misc
https://geonetwork-opensource.org/
Third Party Advisory x_refsource_misc
https://github.com/geonetwork/core-geonetwork
Patch, Release Notes, Vendor Advisory x_refsource_misc
https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html
Mitigation, Patch, Third Party Advisory x_refsource_confirm
https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf
Scores
CVSS v3
7.2
EPSS
0.0109
EPSS Percentile
61.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-78
Status
published
Products (2)
osgeo/geonetwork
4.0.0 alpha1 (2 CPE variants)
osgeo/geonetwork
3.4.0 - 3.12.0
Published
Sep 05, 2022
Tracked Since
Feb 18, 2026