{"id":"CVE-2021-28398","aliases":["CVE-2021-28398"],"related":[],"kind":"vulnerability","state":"published","title":"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 O…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Un atacante privilegiado en GeoNetwork versiones anteriores a 3.12.0 y versiones 4.x anteriores a 4.0.4, puede usar el script previo del recolector de directorios para ejecutar comandos arbitrarios del Sistema Operativo de forma remota en la infraestructura de alojamiento. Para llevarlo a cabo es requerida una cuenta de usuario administrador o de administrador. Esto ocurre en el método runBeforeScript en harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/localfilesystem/LocalFilesystemHarvester.java. La primera versión afectada es la 3.4.0","source":"nvd"}],"published":"2022-09-05T16:09:29.000Z","modified":"2026-06-17T03:46:18.973Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.4.0","fixed":"3.12.0"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.4"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"}],"vendor":"osgeo","product":"geonetwork","cpe":"cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://geonetwork-opensource.org/","tags":["product","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/geonetwork/core-geonetwork","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html","tags":["patch","release-notes","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf","tags":["mitigation","patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28398","url":"https://www.cve.org/CVERecord?id=CVE-2021-28398","licence":"CVE Terms of Use","modified":"2024-08-03T21:40:14.221Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28398","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28398","licence":"Public domain","modified":"2026-06-17T03:46:18.973Z"}],"updatedAt":"2026-11-25T22:58:07.818Z","epss":{"score":0.015,"percentile":0.75024,"date":"2026-12-01T12:00:22.000Z"}}