{"id":"CVE-2021-28398","sourceIdentifier":"cve@mitre.org","published":"2022-09-05T17:15:19.083","lastModified":"2026-06-17T03:46:18.973","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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"}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","baseScore":7.2,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-78"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4.0","versionEndExcluding":"3.12.0","matchCriteriaId":"1299B47E-8561-47D5-BF7B-2E33CC71BF9F"},{"vulnerable":true,"criteria":"cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.0.4","matchCriteriaId":"5959BA61-0F46-4F25-8AD7-3AF29CEDF3F8"},{"vulnerable":true,"criteria":"cpe:2.3:a:osgeo:geonetwork:4.0.0:alpha1:*:*:*:*:*:*","matchCriteriaId":"58A83C77-BABD-4DE5-BEC9-30798C3CB6B8"},{"vulnerable":true,"criteria":"cpe:2.3:a:osgeo:geonetwork:4.0.0:alpha2:*:*:*:*:*:*","matchCriteriaId":"58DC7012-9FE1-4A16-9807-885939EEA36E"}]}]}],"references":[{"url":"https://geonetwork-opensource.org/","source":"cve@mitre.org","tags":["Product"]},{"url":"https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html","source":"cve@mitre.org","tags":["Patch","Release Notes","Vendor Advisory"]},{"url":"https://github.com/geonetwork/core-geonetwork","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf","source":"cve@mitre.org","tags":["Mitigation","Patch","Third Party Advisory"]},{"url":"https://geonetwork-opensource.org/","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Product"]},{"url":"https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Release Notes","Vendor Advisory"]},{"url":"https://github.com/geonetwork/core-geonetwork","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mitigation","Patch","Third Party Advisory"]}]}