GHSA-3v6v-2x6p-32mc

Suggest an improvement
Source
https://github.com/advisories/GHSA-3v6v-2x6p-32mc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-3v6v-2x6p-32mc/GHSA-3v6v-2x6p-32mc.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-3v6v-2x6p-32mc
Aliases
Published
2022-12-13T18:30:34Z
Modified
2025-03-17T21:58:14.676875Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
pgadmin4 vulnerable to Code Injection
Details

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities such as pgdump and pgrestore. The utility is executed by the server to determine what PostgreSQL version it is from. Versions of pgAdmin prior to 6.17 failed to properly secure this API, which could allow an unauthenticated user to call it with a path of their choosing, such as a UNC path to a server they control on a Windows machine. This would cause an appropriately named executable in the target path to be executed by the pgAdmin server.

Database specific
{
    "severity": "HIGH",
    "github_reviewed_at": "2022-12-19T21:09:48Z",
    "cwe_ids": [
        "CWE-862",
        "CWE-94"
    ],
    "github_reviewed": true,
    "nvd_published_at": "2022-12-13T16:15:00Z"
}
References

Affected packages

PyPI / pgadmin4

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.17

Affected versions

4.*
4.20
4.22
4.23
4.24
4.25
4.26
4.27
4.28
4.29
4.30
5.*
5.0
5.1
5.2
5.3
5.4
5.5
5.6
5.7
6.*
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6.10
6.11
6.12
6.13
6.14
6.15
6.16

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-3v6v-2x6p-32mc/GHSA-3v6v-2x6p-32mc.json"