{"id":"CVE-2025-13780","aliases":["CVE-2025-13780","GHSA-fxmw-jcgr-w44v","PYSEC-2026-450"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)","summary":"pgAdmin versions up to 9.10 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pgAdmin versions up to 9.10 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.","source":"cvelist"},{"lang":"en","text":"The PLAIN restore meta-command filter introduced in pgAdmin as part of the fix for CVE-2025-12762 does not detect meta-commands when a SQL file begins with a UTF-8 Byte Order Mark (EF BB BF) or other special byte sequences. The implemented filter uses the function `has_meta_commands()`, which scans raw bytes using a regular expression. The regex does not treat the bytes as ignorable, so meta-commands such as `\\\\!` remain undetected. When pgAdmin invokes psql with --file, psql strips the bytes and executes the command. This can result in remote command execution during a restore operation.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de pgAdmin hasta la 9.10 están afectadas por una vulnerabilidad de ejecución remota de código (RCE) que ocurre al ejecutarse en modo servidor y al realizar restauraciones desde archivos de volcado en formato PLAIN. Este problema permite a los atacantes inyectar y ejecutar comandos arbitrarios en el servidor que aloja pgAdmin, lo que representa un riesgo crítico para la integridad y seguridad del sistema de gestión de base de datos y los datos subyacentes.","source":"nvd"}],"published":"2025-12-11T18:30:47.812Z","modified":"2026-11-16T15:45:09.428Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-77","CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"9.10","status":"affected"}],"vendor":"pgadmin.org","product":"pgAdmin 4","repo":"https://github.com/pgadmin-org/pgadmin4","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.11"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"9.10"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.11"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"pysec"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9368","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13780","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/pull/9426","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/1d397395f75320ca1d4ed5e9ca721c603415e836","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/d5a909f14cb9713d89b49481ad1929fad89f4576","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pgadmin4/PYSEC-2026-450.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-fxmw-jcgr-w44v","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-12T04:55:53.536Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-13780","url":"https://www.cve.org/CVERecord?id=CVE-2025-13780","licence":"CVE Terms of Use","modified":"2026-11-03T22:02:51.373Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fxmw-jcgr-w44v","url":"https://github.com/advisories/GHSA-fxmw-jcgr-w44v","licence":"CC-BY-4.0","modified":"2026-11-16T15:45:09.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-13780","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13780","licence":"Public domain","modified":"2026-10-07T20:10:01.970Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-450","url":"https://osv.dev/vulnerability/PYSEC-2026-450","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:59.869Z"}],"updatedAt":"2026-11-25T22:59:09.248Z","epss":{"score":0.00981,"percentile":0.63236,"date":"2026-12-01T12:00:22.000Z"}}