{"id":"CVE-2021-28398","aliases":["EUVD-2021-15078","GHSA-cf8p-c88c-h9jf"],"status":"published","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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01457,"percentile":0.73722,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-78"],"published":"2022-09-05T16:09:29Z","modified":"2026-10-20T10:54:44Z","products":[{"vendor":"osgeo","product":"geonetwork"}],"references":[{"url":"https://geonetwork-opensource.org/","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/geonetwork/core-geonetwork","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html","tags":["x_refsource_MISC","x_transferred","Patch","Release Notes","Vendor Advisory","fix"]},{"url":"https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Patch","Third Party Advisory","fix"]}],"sources":{"cve":[{"id":"CVE-2021-28398","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.","status":"published","published":"2022-09-05T16:09:29Z","modified":"2024-08-03T21:40:14.221Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-15078","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.","status":"published","published":"2022-09-05T16:09:29Z","modified":"2024-08-03T21:40:14Z","updated_at":"2026-11-03T03:24:46.751124Z"}],"nvd":[{"id":"CVE-2021-28398","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.","status":"published","published":"2022-09-05T17:15:19.083Z","modified":"2026-06-17T03:46:18.973Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:07:06.906968Z"}],"osv":[{"id":"CVE-2021-28398","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.","status":"published","published":"2022-09-05T17:15:19.083Z","modified":"2026-10-20T10:54:44.052816342Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"}]}}
