{"id":"CVE-2022-0959","aliases":["CVE-2022-0959","GHSA-cr8c-972v-rmp3","PYSEC-2026-729"],"related":[],"kind":"vulnerability","state":"published","title":"pgAdmin 4 Path Traversal vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un usuario malintencionado, pero autorizado y autentificado, puede construir una petición HTTP utilizando su token CSRF existente y la cookie de sesión para subir manualmente archivos a cualquier ubicación en la que la cuenta de usuario del sistema operativo bajo la que se ejecuta pgAdmin tenga permiso para escribir","source":"nvd"}],"published":"2022-03-16T14:03:38.000Z","modified":"2026-07-06T08:11:36.726Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-434"],"affected":[{"ranges":[{"version":"pgadmin 6.7","status":"affected"}],"product":"pgadmin","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.7"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.7"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.7"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2063759","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0959","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/dccd4f0bbaafa783d9f0360c7592b128d5cc3928","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cr8c-972v-rmp3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0959","url":"https://www.cve.org/CVERecord?id=CVE-2022-0959","licence":"CVE Terms of Use","modified":"2024-08-02T23:47:42.970Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cr8c-972v-rmp3","url":"https://github.com/advisories/GHSA-cr8c-972v-rmp3","licence":"CC-BY-4.0","modified":"2026-07-06T08:11:36.726Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0959","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0959","licence":"Public domain","modified":"2026-06-17T04:21:33.183Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-729","url":"https://osv.dev/vulnerability/PYSEC-2026-729","licence":"CC-BY-4.0","modified":"2026-07-06T08:00:50.589Z"}],"updatedAt":"2026-11-25T22:58:10.137Z","epss":{"score":0.00968,"percentile":0.62853,"date":"2026-12-01T12:00:22.000Z"}}