{"id":"CVE-2026-6475","aliases":["CVE-2026-6475","BIT-POSTGRESQL-2026-6475"],"related":[],"kind":"vulnerability","state":"published","title":"PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice","summary":"Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account.  It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries.  Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM.  Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account.  It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries.  Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM.  Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.","source":"cvelist"},{"lang":"es","text":"El seguimiento de enlaces simbólicos en el formato plano de pg_basebackup de PostgreSQL y en pg_rewind permite a un superusuario de origen sobrescribir archivos locales, por ejemplo, /var/lib/postgres/.bashrc, que secuestran la cuenta del sistema operativo. Seguirá siendo el caso que iniciar el servidor después de estos comandos confía implícitamente en el superusuario de origen, debido a características como shared_preload_libraries. Por lo tanto, el ataque tiene implicaciones prácticas solo si se toma una acción relevante entre estos comandos y el inicio del servidor, como mover los archivos a una VM diferente o crear una instantánea de la VM. Las versiones anteriores a PostgreSQL 18.4, 17.10, 16.14, 15.18 y 14.23 están afectadas.","source":"nvd"}],"published":"2026-05-14T13:00:11.039Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-61"],"affected":[{"ranges":[{"type":"rpm","introduced":"18","fixed":"18.4","status":"affected"},{"type":"rpm","introduced":"17","fixed":"17.10","status":"affected"},{"type":"rpm","introduced":"16","fixed":"16.14","status":"affected"},{"type":"rpm","introduced":"15","fixed":"15.18","status":"affected"},{"type":"rpm","introduced":"0","fixed":"14.23","status":"affected"}],"product":"PostgreSQL","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"14.23"},{"status":"affected","introduced":"15.0","fixed":"15.18"},{"status":"affected","introduced":"16.0","fixed":"16.14"},{"status":"affected","introduced":"17.0","fixed":"17.10"},{"status":"affected","introduced":"18.0","fixed":"18.4"}],"vendor":"postgresql","product":"postgresql","cpe":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"14.23.0"},{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.18.0"},{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.14.0"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.10.0"},{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.4.0"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-6475/","tags":["advisory","patch","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6475","tags":["web"],"sources":["bitnami"]}],"credits":["The PostgreSQL project thanks Valery Gubanov, XlabAI Team of Tencent Xuanwu Lab, Atuin Automated Vulnerability Discovery Engine, Zhanpeng Liu (pkugenuine(at)gmail(dot)com), Guannan Wang (wgnbuaa(at)gmail(dot)com), and Guancheng Li (lgcpku(at)gmail(dot)com) for reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-14T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6475","url":"https://www.cve.org/CVERecord?id=CVE-2026-6475","licence":"CVE Terms of Use","modified":"2026-05-15T03:56:16.367Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6475","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6475","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2026-6475","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6475","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.527Z"}],"updatedAt":"2026-11-25T22:59:21.702Z","epss":{"score":0.0041,"percentile":0.37317,"date":"2026-12-01T12:00:22.000Z"}}