{"id":"CVE-2022-0959","aliases":["EUVD-2022-1410","GHSA-cr8c-972v-rmp3","MGASA-2022-0257","PYSEC-2026-729","SUSE-SU-2022:1541-1","openSUSE-SU-2024:13667-1"],"status":"published","title":"pgAdmin 4 Path Traversal vulnerability","description":"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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00968,"percentile":0.62074,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22","CWE-434"],"published":"2022-03-16T14:03:38Z","modified":"2026-10-28T02:30:29Z","fixes":[{"ecosystem":"PyPI","package":"pgadmin4","fixed_in":["6.7"],"sources":["ghsa","osv"]},{"ecosystem":"Mageia:8","package":"pgadmin4","fixed_in":["4.30-5.mga8"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","package":"pgadmin4","fixed_in":["4.30-150300.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.3","package":"pgadmin4","fixed_in":["4.30-150300.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.4","package":"pgadmin4","fixed_in":["4.30-150300.3.3.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7"}]}],"versions":["4.20","4.22","4.23","4.24","4.25","4.26","4.27","4.28","4.29","4.30","5.0","5.1","5.2","5.3","5.4","5.5","5.6","5.7","6.2","6.3","6.4","6.5","6.6"]},{"source":"osv","ecosystem":"Mageia:8","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.30-5.mga8"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7"}]}],"versions":["4.20","4.22","4.23","4.24","4.25","4.26","4.27","4.28","4.29","4.30","5.0","5.1","5.2","5.3","5.4","5.5","5.6","5.7","6.2","6.3","6.4","6.5","6.6"]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.30-150300.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.30-150300.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.30-150300.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"pgadmin4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2-1.1"}]}],"bundled":3}],"products":[{"vendor":"open source","product":"pgadmin"},{"vendor":"pgadmin","product":"pgadmin_4"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2063759","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0959","tags":["advisory"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/dccd4f0bbaafa783d9f0360c7592b128d5cc3928","tags":["web"]},{"url":"https://github.com/advisories/GHSA-cr8c-972v-rmp3","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0959.json","tags":["advisory"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2022-0257.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30385","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JSL3A3EFXELNQREOPMKA3CGCYH5WGQXK/","tags":["web"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20221541-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1197143","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0959","tags":["web"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-0241","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2023-22298","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-0959","description":"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.","status":"published","published":"2022-03-16T14:03:38Z","modified":"2024-08-02T23:47:42.97Z","cwes":["CWE-434"],"updated_at":"2026-11-02T14:34:41.69911Z"}],"euvd":[{"id":"EUVD-2022-1410","description":"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.","status":"published","published":"2022-03-16T14:03:38Z","modified":"2024-08-02T23:47:42Z","updated_at":"2026-11-03T03:26:03.474849Z"}],"ghsa":[{"id":"GHSA-cr8c-972v-rmp3","title":"pgAdmin 4 Path Traversal vulnerability","description":"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.","status":"published","published":"2022-03-17T00:00:24Z","modified":"2023-06-30T20:26:43Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-22","CWE-434"],"updated_at":"2026-11-02T14:36:55.91458Z"}],"nvd":[{"id":"CVE-2022-0959","description":"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.","status":"published","published":"2022-03-16T15:15:16.213Z","modified":"2026-06-17T04:21:33.183Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-434","CWE-22"],"updated_at":"2026-11-02T14:07:14.24948Z"}],"osv":[{"id":"GHSA-cr8c-972v-rmp3","title":"pgAdmin 4 Path Traversal vulnerability","description":"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.","status":"published","published":"2022-03-17T00:00:24Z","modified":"2026-07-06T08:11:36.726926484Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-22","CWE-434"],"updated_at":"2026-11-02T15:46:45.28161Z"},{"id":"PYSEC-2026-729","title":"pgAdmin 4 Path Traversal vulnerability","description":"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.","status":"published","published":"2026-07-02T14:13:16.698617Z","modified":"2026-07-06T08:00:50.589615351Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"CVE-2022-0959","description":"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.","status":"published","published":"2022-03-16T14:03:38Z","modified":"2026-10-28T02:30:29.156023418Z","cwes":["CWE-434"],"updated_at":"2026-11-02T15:44:23.245966Z"},{"id":"MGASA-2022-0257","title":"Updated pgadmin4 packages fix security vulnerability","description":"A malicious, but authorised and authenticated user can construct an HTTP\nrequest using their existing CSRF token and session cookie to manually\nupload files to any location that the operating system user account under\nwhich pgAdmin is running has permission to write. (CVE-2022-0959)\n\nIn addition, missing requires have been added, file and directory\npermissions have been corrected. Upstream update check disabled.\n","status":"published","published":"2022-07-13T20:44:07Z","modified":"2026-04-16T04:43:51.806760156Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2024:13667-1","title":"pgadmin4-8.2-1.1 on GA media","description":"These are all security issues fixed in the pgadmin4-8.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:24:09.852315Z","updated_at":"2026-11-02T16:58:36.327643Z"},{"id":"SUSE-SU-2022:1541-1","title":"Security update for pgadmin4","description":"This update for pgadmin4 fixes the following issues:\n\n- CVE-2022-0959: Fixed an unrestricted file upload (bsc#1197143).\n","status":"published","published":"2022-05-04T15:35:34Z","modified":"2026-02-04T02:57:17.472268Z","updated_at":"2026-11-02T15:53:50.513981Z"}]}}
