{"id":"CVE-2025-61385","aliases":["EUVD-2025-36226","GHSA-wq2g-r956-j8cc","PYSEC-2026-1766"],"status":"published","title":"pg8000 SQL injection vulnerability via a specially crafted Python list input","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","severity":{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00363,"percentile":0.30535,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2025-10-27T00:00:00Z","modified":"2026-11-05T21:10:00Z","fixes":[{"ecosystem":"PyPI","package":"pg8000","fixed_in":["1.31.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pg8000","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.31.4"},{"fixed":"1.31.5"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pg8000","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.5"}]}],"versions":["1.00","1.01","1.02","1.03","1.04","1.05","1.06","1.07","1.08","1.10.0","1.10.1","1.10.2","1.10.3","1.10.4","1.10.5","1.10.6","1.11.0","1.12.0","1.12.1","1.12.2","1.12.3","1.12.4","1.12.5","1.13.1","1.13.2","1.14.0","1.14.1","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.16.4","1.16.5","1.16.6","1.17.0","1.18.0","1.19.0","1.19.1","1.19.2","1.19.3","1.19.4","1.19.5","1.20.0","1.21.0","1.21.1","1.21.2","1.21.3","1.22.0","1.22.1","1.23.0","1.24.0","1.24.1","1.24.2","1.25.0","1.26.0","1.26.1","1.27.0","1.27.1","1.28.0","1.28.1","1.28.2","1.28.3","1.29.0","1.29.1","1.29.2","1.29.3","1.29.4","1.29.5","1.29.6","1.29.7","1.29.8","1.30.1","1.30.2","1.30.3","1.30.4","1.30.5","1.31.0","1.31.1","1.31.2","1.31.3","1.31.4","1.9.0","1.9.1","1.9.10","1.9.11","1.9.12","1.9.13","1.9.14","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.7","1.9.8","1.9.9"]},{"source":"osv","ecosystem":"PyPI","package":"pg8000","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.5"}]}],"versions":["1.00","1.01","1.02","1.03","1.04","1.05","1.06","1.07","1.08","1.10.0","1.10.1","1.10.2","1.10.3","1.10.4","1.10.5","1.10.6","1.11.0","1.12.0","1.12.1","1.12.2","1.12.3","1.12.4","1.12.5","1.13.1","1.13.2","1.14.0","1.14.1","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.16.4","1.16.5","1.16.6","1.17.0","1.18.0","1.19.0","1.19.1","1.19.2","1.19.3","1.19.4","1.19.5","1.20.0","1.21.0","1.21.1","1.21.2","1.21.3","1.22.0","1.22.1","1.23.0","1.24.0","1.24.1","1.24.2","1.25.0","1.26.0","1.26.1","1.27.0","1.27.1","1.28.0","1.28.1","1.28.2","1.28.3","1.29.0","1.29.1","1.29.2","1.29.3","1.29.4","1.29.5","1.29.6","1.29.7","1.29.8","1.30.1","1.30.2","1.30.3","1.30.4","1.30.5","1.31.0","1.31.1","1.31.2","1.31.3","1.31.4","1.9.0","1.9.1","1.9.10","1.9.11","1.9.12","1.9.13","1.9.14","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.7","1.9.8","1.9.9"]}],"references":[{"url":"https://codeberg.org/tlocke/pg8000/commit/8663c746b02286c32f19c385f0e2e5da9e4fa140","tags":["web"]},{"url":"https://github.com/bmcyver/vulnerability-research/tree/main/CVE-2025-61385","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61385","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wq2g-r956-j8cc","tags":["advisory"]},{"url":"https://codeberg.org/tlocke/pg8000","tags":["package"]},{"url":"https://pypi.org/project/pg8000","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-61385","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2025-10-27T00:00:00Z","modified":"2025-10-28T15:19:57.759Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:32:45.105469Z"}],"euvd":[{"id":"EUVD-2025-36226","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2025-10-27T00:00:00Z","modified":"2025-10-28T15:19:57Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:49:36.644055Z"}],"ghsa":[{"id":"GHSA-wq2g-r956-j8cc","title":"pg8000 SQL injection vulnerability via a specially crafted Python list input","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2025-10-27T18:31:13Z","modified":"2025-10-27T23:17:07Z","cvss":[{"version":"4.0","score":8.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:39:04.350802Z"}],"nvd":[{"id":"CVE-2025-61385","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2025-10-27T18:15:43.76Z","modified":"2026-11-05T21:10:00.183Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-89"],"updated_at":"2026-11-05T23:57:15.690201Z"}],"osv":[{"id":"GHSA-wq2g-r956-j8cc","title":"pg8000 SQL injection vulnerability via a specially crafted Python list input","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2025-10-27T18:31:13Z","modified":"2026-07-07T17:56:15.340375742Z","cvss":[{"version":"4.0","score":8.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:58.767335Z"},{"id":"PYSEC-2026-1766","title":"pg8000 SQL injection vulnerability via a specially crafted Python list input","description":"SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.","status":"published","published":"2026-07-07T16:03:08.272566Z","modified":"2026-07-07T17:47:18.158332127Z","cvss":[{"version":"4.0","score":8.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"high"}],"updated_at":"2026-11-02T15:52:55.06457Z"}]}}
