CVE-2021-28398

Source
https://cve.org/CVERecord?id=CVE-2021-28398
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28398.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-28398
Aliases
  • GHSA-cf8p-c88c-h9jf
Published
2022-09-05T17:15:19.083Z
Modified
2026-07-08T06:27:53.604273256Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:a:osgeo:geonetwork:4.0.0:alpha1:*:*:*:*:*:*",
                "cpe:2.3:a:osgeo:geonetwork:4.0.0:alpha2:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "4.0.0-alpha1"
                },
                {
                    "last_affected": "4.0.0-alpha1"
                },
                {
                    "introduced": "4.0.0-alpha2"
                },
                {
                    "last_affected": "4.0.0-alpha2"
                }
            ],
            "vendor_product": "osgeo:geonetwork",
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/geonetwork/core-geonetwork

Affected ranges

Type
GIT
Repo
https://github.com/geonetwork/core-geonetwork
Events
Database specific
{
    "cpe": "cpe:2.3:a:osgeo:geonetwork:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "3.4.0"
        },
        {
            "fixed": "3.12.0"
        },
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.0.4"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

4.*
4.0.0
4.0.1
4.0.2
4.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28398.json"