{"answers":{"affected":"1 open source package ship an affected version, including postgresql. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-18408 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 14.24.0, 15.19.0, 16.15.0 or 17.11.0.","what":"CVE-2026-18408 is a high-severity code injection vulnerability in Postgresql Postgresql, published on 13 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-18408 and fix it if it is affected.\n\nWhat it is: CVE-2026-18408 is a high-severity code injection vulnerability in Postgresql Postgresql, published on 13 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-18408 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 14.24.0, 15.19.0, 16.15.0, 17.11.0, 18.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-18408/ (Markdown: https://insights.sbomify.com/CVE-2026-18408/index.md)","id":"CVE-2026-18408","markdown":"https://insights.sbomify.com/CVE-2026-18408/index.md","name":"CVE-2026-18408","record":{"aliases":["ALPINE-CVE-2026-18408","AZL-95705","BELL-CVE-2026-18408","BIT-postgresql-2026-18408","DEBIAN-CVE-2026-18408","ECHO-81a7-2888-c43b","GHSA-p745-282f-cxpr","MINI-36fx-g527-pphv","MINI-4rmm-g3hc-gpxr","MINI-g6rv-w7cf-gchw","MINI-j8r2-5hvc-369q","MINI-mh3x-2w56-8r8c","MINI-rvgv-w584-9xvv","RHSA-2026:79009","RHSA-2026:79027","RHSA-2026:79028","ROOT-OS-DEBIAN-11-CVE-2026-18408","UBUNTU-CVE-2026-18408"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"none","summary":"A malicious superuser on the origin server can execute arbitrary code on the client machine running psql during a database restore operation.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PostgreSQL","cpe":[{"product":"postgresql","vendor":"postgresql"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"description":"Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql \\restrict meta-command input expansion.  The fix for CVE-2025-8714 introduced \\restrict and \\unrestrict to block this attack, but \\unrestrict itself was sufficient for an attack.  pg_dumpall is also affected.  pg_restore is affected when used to generate a plain-format dump.  Non-core use of \\restrict would be affected, but we've not identified non-core use.  Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.","ecosystems":["Bitnami","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_eus_long_life:8.6::appstream","Red Hat:rhel_tus:8.8::appstream"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PostgreSQL psql \\unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client","id":"CVE-2026-18408","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"postgresql:postgresql","products":["postgresql:postgresql"],"type":"code_injection","year":"2026"},"n_packages":199,"n_references":1,"next":{"headline":"Cross-site scripting in WPForms Pro","id":"CVE-2026-18409"},"packages":[{"ecosystem":"Bitnami","fixed":["14.24.0","15.19.0","16.15.0","17.11.0","18.5.0"],"introduced":["0","15.0.0","16.0.0","17.0.0","18.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2026-18408"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.4.0-6.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.10.0-2.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.10.0-2.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debuginfo","purl":"pkg:rpm/redhat/postgres-decoderbufs-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:0.10.0-2.module+el8.4.0+11288+c193d6d7"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debugsource","purl":"pkg:rpm/redhat/postgres-decoderbufs-debugsource","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib-debuginfo","purl":"pkg:rpm/redhat/postgresql-contrib-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-debugsource","purl":"pkg:rpm/redhat/postgresql-debugsource","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/redhat/postgresql-docs","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs-debuginfo","purl":"pkg:rpm/redhat/postgresql-docs-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl-debuginfo","purl":"pkg:rpm/redhat/postgresql-plperl-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/redhat/postgresql-plpython3","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3-debuginfo","purl":"pkg:rpm/redhat/postgresql-plpython3-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/redhat/postgresql-pltcl","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl-debuginfo","purl":"pkg:rpm/redhat/postgresql-pltcl-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/redhat/postgresql-server","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/redhat/postgresql-server-devel","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-devel-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/redhat/postgresql-static","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/redhat/postgresql-test","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-debuginfo","purl":"pkg:rpm/redhat/postgresql-test-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/redhat/postgresql-test-rpm-macros","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/redhat/postgresql-upgrade","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/redhat/postgresql-upgrade-devel","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:12.22-1.module+el8.4.0+24985+ffa880ed.7"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-devel-debuginfo","source":"RHSA-2026:79028"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/redhat/pg_repack","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debuginfo","purl":"pkg:rpm/redhat/pg_repack-debuginfo","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.6-3.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debugsource","purl":"pkg:rpm/redhat/pg_repack-debugsource","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.4.0-5.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:0.10.0-2.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2026:79027"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:0.10.0-2.module+el8.5.0+11354+78b3c9c5"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debuginfo","purl":"pkg:rpm/redhat/postgres-decoderbufs-debuginfo","source":"RHSA-2026:79027"}],"prev":{"headline":"SureForms \u003c= 2.12.2 - Unauthenticated Stored Cross-Site Scripting via Text Field Entity-Encoded Payload","id":"CVE-2026-18406"},"products":["PostgreSQL"],"published":"2026-08-13","related":[{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1902","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Information disclosure in n/a","id":"CVE-2013-1903","kev_date_added":null,"published":"2013-04-04"},{"cvss_score":10,"headline":"Privilege escalation in n/a","id":"CVE-2007-3279","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2002-1399","kev_date_added":null,"published":"2003-01-08"},{"cvss_score":9.1,"headline":"Information disclosure in n/a","id":"CVE-2016-3065","kev_date_added":null,"published":"2016-04-11"},{"cvss_score":9,"headline":"Code injection in n/a","id":"CVE-2007-3280","kev_date_added":null,"published":"2007-06-19"},{"cvss_score":8.8,"headline":"PostgreSQL tsvector and tsquery undersize allocations, via integer wraparound","id":"CVE-2026-14662","kev_date_added":null,"published":"2026-08-13"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-29","vendors":["n/a"]},"summary":"A malicious superuser on the origin server can execute arbitrary code on the client machine running psql during a database restore operation.","url":"https://insights.sbomify.com/CVE-2026-18408/"}