# CVE-2022-4223: pgadmin4 vulnerable to Code Injection

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/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): 80.1%, higher than 99% of CVEs (2026-12-01)
- Published: 2022-12-13T00:00:00.000Z
- Modified: 2026-07-07T11:56:33.182Z
- Also known as: GHSA-3v6v-2x6p-32mc, PYSEC-2026-893
- Weaknesses: CWE-94, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. The utility is executed by the server to determine what PostgreSQL version it is from. Versions of pgAdmin prior to 6.17 failed to properly secure this API, which could allow an unauthenticated user to call it with a path of their choosing, such as a UNC path to a server they control on a Windows machine. This would cause an appropriately named executable in the target path to be executed by the pgAdmin server.

(As written by CVE List.)

## Affected

- pgadmin4: pgadmin4 6.17
- pgadmin4 (PyPI): before 6.17
- pgadmin pgadmin_4: before 6.17
- fedoraproject fedora: 37

## Every score

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

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/5593> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q/> (mailing-list, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4223> (advisory)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R5EYTPKHVFSDCETBJI7LBZE4EYHBPN2Q> (web)
- <https://pypi.org/project/pgadmin4> (package)
- <https://github.com/advisories/GHSA-3v6v-2x6p-32mc> (advisory)

## Sources

- CVE List: [CVE-2022-4223](https://www.cve.org/CVERecord?id=CVE-2022-4223), CVE Terms of Use, modified 2025-04-14
- GitHub Advisory Database: [GHSA-3v6v-2x6p-32mc](https://github.com/advisories/GHSA-3v6v-2x6p-32mc), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-4223](https://nvd.nist.gov/vuln/detail/CVE-2022-4223), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-893](https://osv.dev/vulnerability/PYSEC-2026-893), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-4223 · Whole record: https://cve.day/CVE-2022-4223.json · Rebuilt by cve.day 2026-11-25T22:58:17.486Z
