CVE-2021-28398 Command injection in n/a
Privileged attackers can execute arbitrary OS commands via the directory harvester before-script in GeoNetwork.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-28398?
CVE-2021-28398 is a high-severity command injection vulnerability in n/a, published on 5 Sep 2022. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2021-28398?
It affects 1 product.
Products include Osgeo Geonetwork.
How do I fix CVE-2021-28398?
No fix has been published for CVE-2021-28398 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-28398 being exploited?
There is no known exploitation of CVE-2021-28398 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-cf8p-c88c-h9jf.