# CVE-2026-7817: pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpoints

- Severity: High 7.1 (CVSS:4.0, scored by PostgreSQL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- 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): 0.35%, higher than 21% of CVEs (2026-11-30)
- Published: 2026-05-11T14:35:51.384Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-p58c-q354-6c4f, PYSEC-2026-2871
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## Description

Local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configuration endpoints.

User-supplied api_key_file and api_url preferences were passed to the LLM provider clients without validation. An authenticated user could read arbitrary server-side files by pointing api_key_file at any path readable by the pgAdmin process, or coerce pgAdmin into making requests to internal targets (e.g. cloud metadata services such as 169.254.169.254) by setting api_url, exploiting the chat path and model-list endpoints.

Fix restricts api_key_file to the user's private storage (server mode) or home directory (desktop mode), enforces a printable-ASCII key shape and a 1024-byte read cap, and gates api_url against a configurable allow-list (config.ALLOWED_LLM_API_URLS) at every entry point.

This issue affects pgAdmin 4: before 9.15.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: from 9.13 before 9.15
- pgadmin4 (PyPI): before 9.15
- pgadmin pgadmin_4: from 9.13 before 9.15

## Every score

- PostgreSQL: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PostgreSQL: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/pgadmin-org/pgadmin4/issues/9900> (issue-tracking, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7817> (advisory)
- <https://github.com/pgadmin-org/pgadmin4/commit/24485fe96> (web)
- <https://github.com/pgadmin-org/pgadmin4> (package)
- <https://pypi.org/project/pgadmin4> (package)
- <https://github.com/advisories/GHSA-p58c-q354-6c4f> (advisory)

## Sources

- CVE List: [CVE-2026-7817](https://www.cve.org/CVERecord?id=CVE-2026-7817), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-p58c-q354-6c4f](https://github.com/advisories/GHSA-p58c-q354-6c4f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-7817](https://nvd.nist.gov/vuln/detail/CVE-2026-7817), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2871](https://osv.dev/vulnerability/PYSEC-2026-2871), CC-BY-4.0, modified 2026-07-13

---

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