{"answers":{"affected":"1 open source package ship an affected version, including postgresql.","exploited":"There is no known exploitation of CVE-2025-12818 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 13.23.0, 14.20.0, 15.15.0 or 16.11.0.","what":"CVE-2025-12818 is a medium-severity vulnerability in PostgreSQL, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-12818 and fix it if it is affected.\n\nWhat it is: CVE-2025-12818 is a medium-severity vulnerability in PostgreSQL, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-12818 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 13.23.0, 14.20.0, 15.15.0, 16.11.0, 17.7.0, 18.1.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-2025-12818/ (Markdown: https://insights.sbomify.com/CVE-2025-12818/index.md)","id":"CVE-2025-12818","markdown":"https://insights.sbomify.com/CVE-2025-12818/index.md","name":"CVE-2025-12818","record":{"aliases":["ALPINE-CVE-2025-12818","ALSA-2026:0458","ALSA-2026:0525","ALSA-2026:0594","ALSA-2026:0695","AZL-70166","AZL-70202","AZL-74900","BELL-CVE-2025-12818","BIT-postgresql-2025-12818","CLEANSTART-2026-DY00588","CLSA-2026-1768413370","CLSA-2026-1768565904","CLSA-2026-1768910677","DEBIAN-CVE-2025-12818","ECHO-a3a3-6a88-8e40","GHSA-pr6x-gg24-6wfp","MINI-6rc9-w57h-93mp","MINI-m9v4-qwcc-xx36","MINI-mh59-cgg3-mhrq","MINI-vj32-phj6-h22m","MINI-w86v-w9v2-8787","MINI-xhv4-5wf9-mpf7","RHSA-2025:23123","RHSA-2025:23124","RHSA-2025:23157","RHSA-2025:23158","RHSA-2026:0458","RHSA-2026:0594","RHSA-2026:0695","RHSA-2026:0744","RHSA-2026:0745","RHSA-2026:0746","RHSA-2026:0835","RHSA-2026:0865","RLSA-2026:0458","RLSA-2026:0525","RLSA-2026:0594","RLSA-2026:0695","UBUNTU-CVE-2025-12818"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL client library","requires_auth":"none","summary":"An attacker can cause a segmentation fault in applications using libpq by triggering an integer wraparound that leads to undersized memory allocations.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PostgreSQL","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to undersize an allocation and write out-of-bounds by hundreds of megabytes.  This results in a segmentation fault for the application using libpq.  Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"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 libpq undersizes allocations, via integer wraparound","id":"CVE-2025-12818","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"integer_overflow","year":"2025"},"n_packages":92,"n_references":1,"next":{"headline":"Untrusted search path in auth_query connection in PgBouncer","id":"CVE-2025-12819"},"packages":[{"ecosystem":"Bitnami","fixed":["13.23.0","14.20.0","15.15.0","16.11.0","17.7.0","18.1.0"],"introduced":["0","14.0.0","15.0.0","16.0.0","17.0.0","18.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2025-12818"},{"ecosystem":"AlmaLinux:10","fixed":["16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/almalinux/libpq","source":"ALSA-2026:0594"},{"ecosystem":"AlmaLinux:10","fixed":["16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/almalinux/libpq-devel","source":"ALSA-2026:0594"},{"ecosystem":"AlmaLinux:10","fixed":["16.11-1.el10_1"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/almalinux/postgresql-test-rpm-macros","source":"ALSA-2026:0525"},{"ecosystem":"AlmaLinux:8","fixed":["13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/almalinux/libpq","source":"ALSA-2026:0695"},{"ecosystem":"AlmaLinux:8","fixed":["13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/almalinux/libpq-devel","source":"ALSA-2026:0695"},{"ecosystem":"AlmaLinux:9","fixed":["13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/almalinux/libpq","source":"ALSA-2026:0458"},{"ecosystem":"AlmaLinux:9","fixed":["13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/almalinux/libpq-devel","source":"ALSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0594"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0594"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0594"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0594"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:16.11-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0594"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0695"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0695"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0695"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0695"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:13.23-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0695"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:13.23-1.el9_7"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0458"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:16.11-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0865"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:16.11-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0865"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:16.11-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0865"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:16.11-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0865"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:16.11-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0865"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.7-1.el8_2.3"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0835"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.7-1.el8_2.3"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0835"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.7-1.el8_2.3"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0835"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.7-1.el8_2.3"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0835"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:12.7-1.el8_2.3"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0835"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:13.23-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2026:0744"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:13.23-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2026:0744"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:13.23-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libpq-debugsource","purl":"pkg:rpm/redhat/libpq-debugsource","source":"RHSA-2026:0744"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:13.23-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/redhat/libpq-devel","source":"RHSA-2026:0744"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:13.23-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libpq-devel-debuginfo","purl":"pkg:rpm/redhat/libpq-devel-debuginfo","source":"RHSA-2026:0744"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:13.23-1.el8_6"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/redhat/libpq","source":"RHSA-2025:23158"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:13.23-1.el8_6"],"introduced":["0"],"last_affected":[],"package":"libpq-debuginfo","purl":"pkg:rpm/redhat/libpq-debuginfo","source":"RHSA-2025:23158"}],"prev":{"headline":"PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege","id":"CVE-2025-12817"},"products":["PostgreSQL"],"published":"2025-11-13","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-13","vendors":["n/a"]},"summary":"An attacker can cause a segmentation fault in applications using libpq by triggering an integer wraparound that leads to undersized memory allocations.","url":"https://insights.sbomify.com/CVE-2025-12818/"}