GHSA-cr8c-972v-rmp3

Suggest an improvement
Source
https://github.com/advisories/GHSA-cr8c-972v-rmp3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-cr8c-972v-rmp3/GHSA-cr8c-972v-rmp3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cr8c-972v-rmp3
Aliases
Published
2022-03-17T00:00:24Z
Modified
2024-02-16T08:20:40.205792Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
pgAdmin 4 Path Traversal vulnerability
Details

When run in server mode, pgAdmin 4 allows users to store files on the server under individual storage directories. Files such as SQL scripts may be uploaded through the user interface. The URI to which upload requests are made fails to validate the upload path to prevent path traversal techniques being used to store files outside of the storage directory. A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to manually upload files to any location that the operating system user account under which pgAdmin is running has permission to write.

Database specific
{
    "nvd_published_at": "2022-03-16T15:15:00Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-434"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-30T20:26:42Z"
}
References

Affected packages

PyPI / pgadmin4

Package

Affected ranges

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

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