# CVE-2021-28398

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-05 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-28398 · JSON: https://cvemate.com/vulnerability/CVE-2021-28398/json

## Description

```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.
```

## Signals

- CVSS: 7.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.5%, percentile 75.158%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- osgeo geonetwork: ≥ 3.4.0, \< 3.12.0 \| ≥ 4.0.0, \< 4.0.4 \| 4.0.0:alpha1 \| 4.0.0:alpha2

## References

- <https://geonetwork-opensource.org/>
- <https://github.com/geonetwork/core-geonetwork>
- <https://geonetwork-opensource.org/manuals/trunk/en/overview/change-log/version-3.6.0.html>
- <https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-cf8p-c88c-h9jf>

---

Data as of 2026-12-05T10:32:54.200Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
