# CVE-2025-12762: Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)

- Severity: Critical 9.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.7%, higher than 96% of CVEs (2026-12-01)
- Published: 2025-11-13T13:00:02.005Z
- Modified: 2026-11-16T16:00:04.731Z
- Also known as: GHSA-w2p4-p4rh-qcm3, PYSEC-2026-454
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

pgAdmin versions up to 9.9 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.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: up to 9.9
- pgadmin4 (PyPI): before 9.10
- pgadmin pgadmin_4: before 9.10

## Every score

- PostgreSQL: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L`

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/9320> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12762> (advisory)
- <https://github.com/pgadmin-org/pgadmin4/commit/1d397395f75320ca1d4ed5e9ca721c603415e836> (web)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pgadmin4/PYSEC-2026-454.yaml> (web)
- <https://pypi.org/project/pgadmin4> (package, web)
- <https://github.com/advisories/GHSA-w2p4-p4rh-qcm3> (advisory)

## Sources

- CVE List: [CVE-2025-12762](https://www.cve.org/CVERecord?id=CVE-2025-12762), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-w2p4-p4rh-qcm3](https://github.com/advisories/GHSA-w2p4-p4rh-qcm3), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2025-12762](https://nvd.nist.gov/vuln/detail/CVE-2025-12762), Public domain, modified 2026-10-18
- PyPA Advisory Database: [PYSEC-2026-454](https://osv.dev/vulnerability/PYSEC-2026-454), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2025-12762 · Whole record: https://cve.day/CVE-2025-12762.json · Rebuilt by cve.day 2026-11-25T22:59:07.622Z
