{"id":"CVE-2026-7817","published":"2026-05-11T14:35:51Z","modified":"2026-05-11T16:07:55Z","title":"pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpoints","vendor":"pgadmin.org","product":"pgAdmin 4","tier":"tail","description":{"text":"Local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configuration endpoints.\n\nUser-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.\n\nFix 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.\n\nThis issue affects pgAdmin 4: before 9.15.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00217,"percentile":0.12405,"provenance":"source"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9900","tags":["issue-tracking"]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":2.48},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"pgadmin-org","affectedVersions":[{"vendor":"pgadmin.org","product":"pgAdmin 4","versions":[">= 9.13, < 9.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T16:07:51.790149Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pgadmin4","vulnerableRanges":["<9.15"],"patched":["9.15"],"from":["GHSA-p58c-q354-6c4f","PYSEC-2026-2871"],"provenance":"source"}],"summary":{"text":"The flaw is in pgAdmin 4's LLM API configuration endpoints, where the user-supplied api_key_file and api_url preferences were passed to LLM provider clients without validation, enabling local file inclusion and server-side request forgery. An authenticated user with access to the chat path and model-list endpoints can read arbitrary server-side files readable by the pgAdmin process or make pgAdmin send requests to internal targets by setting api_url, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:01Z"},"euvd":{"id":"EUVD-2026-29085","exploited":false,"provenance":"source"}}