# CVE-2025-2945: pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment

- Severity: Critical 9.9 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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): 56.3%, higher than 99% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-03T12:23:14.792Z
- Modified: 2026-11-16T16:00:04.681Z
- Also known as: GHSA-g73c-fw68-pwx3, PYSEC-2026-451
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## Description

Remote Code Execution security vulnerability in pgAdmin 4  (Query Tool and Cloud Deployment modules).

The vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution.


This issue affects pgAdmin 4: before 9.2.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: before 9.2
- pgadmin4 (PyPI): before 9.2
- pgadmin pgadmin_4: before 9.2

## Every score

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

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/8603> (exploit, issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2945> (advisory)
- <https://github.com/pgadmin-org/pgadmin4/commit/75be0bc22d3d8d7620711835db817bd7c021007c> (web)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pgadmin4/PYSEC-2026-451.yaml> (web)
- <https://pypi.org/project/pgadmin4> (package, web)
- <https://github.com/advisories/GHSA-g73c-fw68-pwx3> (advisory)

## Sources

- CVE List: [CVE-2025-2945](https://www.cve.org/CVERecord?id=CVE-2025-2945), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-g73c-fw68-pwx3](https://github.com/advisories/GHSA-g73c-fw68-pwx3), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2025-2945](https://nvd.nist.gov/vuln/detail/CVE-2025-2945), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-451](https://osv.dev/vulnerability/PYSEC-2026-451), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2025-2945 · Whole record: https://cve.day/CVE-2025-2945.json · Rebuilt by cve.day 2026-11-25T22:58:55.991Z
