{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-61781","published":"2026-09-18T20:17:19.003000Z","last_modified":"2026-09-23T18:12:04.247000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-89","CWE-269"],"cpes":[],"cpes_truncated":false,"vendors":["pgpartman"],"products":["pgpartman/pg_partman"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":59,"links":{"html_es":"/es/cve/CVE-2026-61781/","html_en":"/en/cve/CVE-2026-61781/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-61781","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-61781"},"untrusted":{"vendor_name":"pgpartman","product_name":"pg_partman","desc_en":"pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, create_partition_time() reads the writable part_config.time_encoder text value and interpolates it without identifier quoting into a dynamically executed SELECT statement. A role with the documented partman_user INSERT and UPDATE privileges can store SQL rather than a function name. When pg_partman_bgw later creates a child partition for a text- or UUID-keyed set, the worker executes the stored SQL with pg_partman_bgw.role privileges, which default to PostgreSQL superuser. The persistent configuration row can repeatedly restore elevated access on later maintenance ticks, and successful exploitation can permit database-wide compromise and operating-system command execution as the PostgreSQL service account. This issue is fixed in version 5.5.0.","affected":[{"untrusted_vendor":"pgpartman","untrusted_product":"pg_partman","versions":[]}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"65a50d0afee23c2717c72b2db0ce43b6","generated":"2026-11-26T21:29:44.723697Z","es":{"untrusted_title":"Inyección SQL en pg_partman por interpolación sin validación en time_encoder","untrusted_summary":"pg_partman es una extensión de PostgreSQL que gestiona tablas particionadas. Versiones anteriores a 5.5.0 interpolan sin validación el valor time_encoder en sentencias SQL ejecutadas dinámicamente. Un rol con privilegios partman_user puede inyectar SQL malicioso que se ejecuta con privilegios de superusuario cuando pg_partman_bgw crea particiones, permitiendo compromiso de la base de datos y ejecución de comandos del sistema operativo."},"en":{"untrusted_title":"SQL Injection in pg_partman via unvalidated time_encoder interpolation","untrusted_summary":"pg_partman is a PostgreSQL extension that manages partitioned tables. Versions prior to 5.5.0 interpolate the time_encoder value without validation into dynamically executed SQL statements. A role with partman_user privileges can inject malicious SQL that executes with superuser privileges when pg_partman_bgw creates partitions, allowing database compromise and operating-system command execution."},"remediation":{"status":"fix","fixed_versions":["5.5.0"],"untrusted_action_es":"Actualiza pg_partman a versión 5.5.0 o superior.","untrusted_action_en":"Update pg_partman to version 5.5.0 or later.","vendor_url":"https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0"},"reviewed":false},"references":[{"url":"https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361","tags":[]},{"url":"https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0","tags":[]},{"url":"https://github.com/pgpartman/pg_partman/security/advisories/GHSA-742w-3j7c-qwvp","tags":[]}]}}