{"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-6637 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 14.23.0, 15.18.0, 16.14.0 or 17.10.0.","what":"CVE-2026-6637 is a high-severity SQL injection vulnerability in Postgresql Postgresql, published on 14 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-6637 and fix it if it is affected.\n\nWhat it is: CVE-2026-6637 is a high-severity SQL injection vulnerability in Postgresql Postgresql, published on 14 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-6637 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 14.23.0, 15.18.0, 16.14.0, 17.10.0, 18.4.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-6637/ (Markdown: https://insights.sbomify.com/CVE-2026-6637/index.md)","id":"CVE-2026-6637","markdown":"https://insights.sbomify.com/CVE-2026-6637/index.md","name":"CVE-2026-6637","record":{"aliases":["ALPINE-CVE-2026-6637","AZL-86837","BELL-CVE-2026-6637","BIT-postgresql-2026-6637","DEBIAN-CVE-2026-6637","ECHO-e69f-5ef2-55d4","GHSA-96xx-m79q-xh44","JLSEC-2026-607","MINI-3xq4-rjp9-wx66","MINI-634f-pq4w-9vhg","MINI-8q9w-26qp-wxvj","MINI-mvwh-ccp7-r475","MINI-v44q-56x3-m3pj","MINI-wcmp-39jv-whwj","RHSA-2026:50119","RHSA-2026:50811","UBUNTU-CVE-2026-6637"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"Unprivileged users can execute arbitrary code via stack overflow or SQL injection in the refint module, requiring specific application configurations.","user_interaction":"not_required","vuln_class":"sql_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:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"Stack buffer overflow in PostgreSQL module \"refint\" allows an unprivileged database user to execute arbitrary code as the operating system user running the database.  A distinct attack is possible if the application declares a user-controlled column as a \"refint\" cascade primary key and facilitates user-controlled updates to that column.  In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update.  Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.","ecosystems":["Bitnami","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::crb"],"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 refint allows stack buffer overflow and SQL injection","id":"CVE-2026-6637","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"postgresql:postgresql","products":["postgresql:postgresql"],"type":"sql_injection","year":"2026"},"n_packages":63,"n_references":1,"next":{"headline":"PostgreSQL REFRESH PUBLICATION allows SQL injection via table name","id":"CVE-2026-6638"},"packages":[{"ecosystem":"Bitnami","fixed":["14.23.0","15.18.0","16.14.0","17.10.0","18.4.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-6637"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib-debuginfo","purl":"pkg:rpm/redhat/postgresql-contrib-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-debugsource","purl":"pkg:rpm/redhat/postgresql-debugsource","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs-debuginfo","purl":"pkg:rpm/redhat/postgresql-docs-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl-debuginfo","purl":"pkg:rpm/redhat/postgresql-plperl-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/redhat/postgresql-plpython3","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3-debuginfo","purl":"pkg:rpm/redhat/postgresql-plpython3-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/redhat/postgresql-pltcl","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl-debuginfo","purl":"pkg:rpm/redhat/postgresql-pltcl-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-private-libs","purl":"pkg:rpm/redhat/postgresql-private-libs","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-private-libs-debuginfo","purl":"pkg:rpm/redhat/postgresql-private-libs-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/redhat/postgresql-server","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-devel-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-debuginfo","purl":"pkg:rpm/redhat/postgresql-test-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/redhat/postgresql-upgrade","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:13.23-1.el9_2.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-devel-debuginfo","source":"RHSA-2026:50811"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib-debuginfo","purl":"pkg:rpm/redhat/postgresql-contrib-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-debugsource","purl":"pkg:rpm/redhat/postgresql-debugsource","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs-debuginfo","purl":"pkg:rpm/redhat/postgresql-docs-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl-debuginfo","purl":"pkg:rpm/redhat/postgresql-plperl-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/redhat/postgresql-plpython3","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3-debuginfo","purl":"pkg:rpm/redhat/postgresql-plpython3-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/redhat/postgresql-pltcl","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl-debuginfo","purl":"pkg:rpm/redhat/postgresql-pltcl-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-private-libs","purl":"pkg:rpm/redhat/postgresql-private-libs","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-private-libs-debuginfo","purl":"pkg:rpm/redhat/postgresql-private-libs-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/redhat/postgresql-server","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-devel-debuginfo","source":"RHSA-2026:50119"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:13.23-1.el9_6.3"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-debuginfo","purl":"pkg:rpm/redhat/postgresql-test-debuginfo","source":"RHSA-2026:50119"}],"prev":{"headline":"p2r3 convert API buildCache.js Bun.serve path traversal","id":"CVE-2026-6636"},"products":["PostgreSQL"],"published":"2026-05-14","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-05-15","vendors":["n/a"]},"summary":"Unprivileged users can execute arbitrary code via stack overflow or SQL injection in the refint module, requiring specific application configurations.","url":"https://insights.sbomify.com/CVE-2026-6637/"}