{"id":78270,"date":"2026-05-11T19:47:38","date_gmt":"2026-05-11T16:17:38","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-7817-pgadmin-4-local-file-inclusion-and-server-side-request-forgery-in-llm-api-configuration-endpoints\/"},"modified":"2026-05-11T19:47:38","modified_gmt":"2026-05-11T16:17:38","slug":"cve-2026-7817-pgadmin-4-local-file-inclusion-and-server-side-request-forgery-in-llm-api-configuration-endpoints","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-7817-pgadmin-4-local-file-inclusion-and-server-side-request-forgery-in-llm-api-configuration-endpoints\/","title":{"rendered":"CVE-2026-7817 &#8211; pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpoints"},"content":{"rendered":"<p>CVE ID :CVE-2026-7817<\/p>\n<p>  Published : May 11, 2026, 4:17 p.m. | 41\u00a0minutes ago<\/p>\n<p>  Description :Local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configuration endpoints.<\/p>\n<p>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.<\/p>\n<p>Fix restricts api_key_file to the user&#8217;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.<\/p>\n<p>This issue affects pgAdmin 4: before 9.15.<\/p>\n<p>  Severity: 7.1 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-7817 Published : May 11, 2026, 4:17 p.m. | 41\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78270","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78270"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78270\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}