{"answers":{"affected":"1 open source package ship an affected version, including postgresql. It affects 4 products.","exploited":"There is no known exploitation of CVE-2023-39417 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 11.21.0, 12.16.0, 13.12.0 or 14.9.0.","what":"CVE-2023-39417 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 11 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-39417 and fix it if it is affected.\n\nWhat it is: CVE-2023-39417 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 11 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-39417 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected from 11.0.0; fixed in 11.21.0, 12.16.0, 13.12.0, 14.9.0, 15.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-2023-39417/ (Markdown: https://insights.sbomify.com/CVE-2023-39417/index.md)","id":"CVE-2023-39417","markdown":"https://insights.sbomify.com/CVE-2023-39417/index.md","name":"CVE-2023-39417","record":{"aliases":["ALPINE-CVE-2023-39417","AZL-27892","BIT-postgresql-2023-39417","CLEANSTART-2026-JQ15135","CLSA-2023-1695319921","CLSA-2023-1696537563","DEBIAN-CVE-2023-39417","DLA-3600-1","ECHO-3bd5-11a7-75a6","GHSA-jx3x-j983-74m3","JLSEC-2026-42","OESA-2023-1576","OESA-2023-1577","OESA-2023-1578","SUSE-SU-2023:3341-1","SUSE-SU-2023:3343-1","SUSE-SU-2023:3344-1","SUSE-SU-2023:3344-2","SUSE-SU-2023:3345-1","SUSE-SU-2023:3346-1","SUSE-SU-2023:3348-1","SUSE-SU-2023:3384-1","UBUNTU-CVE-2023-39417","USN-6296-1","USN-6366-1","openSUSE-SU-2024:13118-1","openSUSE-SU-2024:13119-1","openSUSE-SU-2024:13120-1","openSUSE-SU-2024:13358-1"],"analysis":{"component_type":"database","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"PostgreSQL database","requires_auth":"low_privilege","summary":"Attackers with CREATE privileges can execute arbitrary code as superuser via SQL injection in vulnerable extension scripts using specific quoting constructs.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"postgresql","vendor":"postgresql"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"software_collections","vendor":"redhat"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/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"}],"description":"IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or \"\"). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.","ecosystems":["Bitnami","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Legacy 15 SP4","SUSE:Linux Enterprise Module for Legacy 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP4","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Server Applications 15 SP4","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"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: extension script @substitutions@ within quoting allow sql injection","id":"CVE-2023-39417","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","postgresql:postgresql","redhat:enterprise_linux","redhat:software_collections"],"type":"sql_injection","year":"2023"},"n_packages":33,"n_references":24,"next":{"headline":"Postgresql: merge fails to enforce update or select row security policies","id":"CVE-2023-39418"},"packages":[{"ecosystem":"Bitnami","fixed":["11.21.0","12.16.0","13.12.0","14.9.0","15.4.0"],"introduced":["11.0.0","12.0.0","13.0.0","14.0.0","15.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2023-39417"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["12.16-150100.3.44.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:3346-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP4","fixed":["13.12-150200.5.43.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP4","source":"SUSE-SU-2023:3344-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP5","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP5","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP4","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP4","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP4","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["12.16-3.42.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:3341-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["13.12-3.36.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:3345-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["14.9-3.26.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:3343-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["12.16-150100.3.44.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2023:3346-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["12.16-3.42.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:3341-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["13.12-3.36.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:3345-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["14.9-3.26.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:3343-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["12.16-150100.3.44.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2023:3346-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["12.16-3.42.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/suse/postgresql12\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:3341-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["13.12-3.36.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:3345-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["14.9-3.26.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:3343-1"},{"ecosystem":"SUSE:Manager Proxy 4.2","fixed":["13.12-150200.5.43.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Manager%20Proxy%204.2","source":"SUSE-SU-2023:3344-1"},{"ecosystem":"SUSE:Manager Proxy 4.2","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Manager%20Proxy%204.2","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["13.12-150200.5.43.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/suse/postgresql13\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:3344-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/suse/postgresql14\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["12.16-150200.8.47.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/opensuse/postgresql12\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:3384-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["13.12-150200.5.43.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/opensuse/postgresql13\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:3344-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/opensuse/postgresql14\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["12.16-150200.8.47.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/opensuse/postgresql12\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:3384-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["13.12-150200.5.43.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/opensuse/postgresql13\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:3344-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["14.9-150200.5.29.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/opensuse/postgresql14\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:3348-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.21-1.1"],"introduced":["0"],"last_affected":[],"package":"postgresql11","purl":"pkg:rpm/opensuse/postgresql11\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13118-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["12.16-1.1"],"introduced":["0"],"last_affected":[],"package":"postgresql12","purl":"pkg:rpm/opensuse/postgresql12\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13119-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["13.12-1.1"],"introduced":["0"],"last_affected":[],"package":"postgresql13","purl":"pkg:rpm/opensuse/postgresql13\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13120-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["14.9-1.1"],"introduced":["0"],"last_affected":[],"package":"postgresql14","purl":"pkg:rpm/opensuse/postgresql14\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13358-1"}],"prev":{"headline":"Command injection in Proself Enterprise/Standard Edition","id":"CVE-2023-39416"},"products":["RHACS-3.74-RHEL-8","RHACS-4.1-RHEL-8","Red Hat Advanced Cluster Security 4.2","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.2 Advanced Update Support","Red Hat Enterprise Linux 8.2 Telecommunications Update Service","Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.4 Telecommunications Update Service","Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.6 Extended Update Support","Red Hat Enterprise Linux 8.8 Extended Update Support","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.0 Extended Update Support","Red Hat Enterprise Linux 9.2 Extended Update Support","Red Hat Software Collections","Red Hat Software Collections for Red Hat Enterprise Linux 7"],"published":"2023-08-11","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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-09-30","vendors":["Red Hat"]},"summary":"Attackers with CREATE privileges can execute arbitrary code as superuser via SQL injection in vulnerable extension scripts using specific quoting constructs.","url":"https://insights.sbomify.com/CVE-2023-39417/"}