{"id":"CVE-2026-7817","aliases":["CVE-2026-7817","GHSA-p58c-q354-6c4f","PYSEC-2026-2871"],"related":[],"kind":"vulnerability","state":"published","title":"pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpoints","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Vulnerabilidades de inclusión local de ficheros (LFI) y falsificación de petición del lado del servidor (SSRF) en los puntos finales de configuración de la API LLM de pgAdmin 4.\n\nLas preferencias api_key_file y api_url suministradas por el usuario se pasaron a los clientes del proveedor de LLM sin validación. Un usuario autenticado podría leer ficheros arbitrarios del lado del servidor apuntando api_key_file a cualquier ruta legible por el proceso de pgAdmin, o forzar a pgAdmin a realizar peticiones a objetivos internos (por ejemplo, servicios de metadatos en la nube como 169.254.169.254) configurando api_url, explotando los puntos finales de la ruta de chat y la lista de modelos.\n\nLa corrección restringe api_key_file al almacenamiento privado del usuario (modo servidor) o al directorio de inicio (modo escritorio), impone una forma de clave ASCII imprimible y un límite de lectura de 1024 bytes, y protege api_url contra una lista de permitidos configurable (config.ALLOWED_LLM_API_URLS) en cada punto de entrada.\n\nEste problema afecta a pgAdmin 4: anterior a 9.15.","source":"nvd"}],"published":"2026-05-11T14:35:51.384Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PostgreSQL","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-552"],"affected":[{"ranges":[{"type":"custom","introduced":"9.13","fixed":"9.15","status":"affected"}],"vendor":"pgadmin.org","product":"pgAdmin 4","repo":"https://github.com/pgadmin-org/pgadmin4","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.15"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.13","fixed":"9.15"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.15"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"pysec"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9900","tags":["issue-tracking","patch","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7817","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/24485fe96","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-p58c-q354-6c4f","tags":["advisory"],"sources":["pysec"]}],"credits":["j3seer"],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-11T16:07:51.790Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7817","url":"https://www.cve.org/CVERecord?id=CVE-2026-7817","licence":"CVE Terms of Use","modified":"2026-05-11T16:07:55.788Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p58c-q354-6c4f","url":"https://github.com/advisories/GHSA-p58c-q354-6c4f","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:47.222Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7817","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7817","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2871","url":"https://osv.dev/vulnerability/PYSEC-2026-2871","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:56.751Z"}],"updatedAt":"2026-11-25T22:59:21.206Z","epss":{"score":0.00346,"percentile":0.20592,"date":"2026-11-30T12:00:22.000Z"}}