{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-12818","id":"CVE-2025-12818","title":"PostgreSQL libpq undersizes allocations, via integer 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.","descriptionLong":"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.","published":"2025-11-13T13:00:12.911Z","updated":"2026-10-19T13:10:00.110Z","reserved":"2025-11-06T17:22:32.130Z","status":"Deferred","rejected":false,"assigner":"PostgreSQL","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"PostgreSQL"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"PostgreSQL"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"}],"rating":"medium","products":["PostgreSQL"],"affectedProducts":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"lessThan":"18.1","status":"affected","version":"18","versionType":"rpm"},{"lessThan":"17.7","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.11","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.15","status":"affected","version":"15","versionType":"rpm"},{"lessThan":"14.20","status":"affected","version":"14","versionType":"rpm"},{"lessThan":"13.23","status":"affected","version":"0","versionType":"rpm"}],"platforms":[]}],"packages":[],"cwes":["CWE-190"],"aliases":[],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-12818/","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00364,"epssPercentile":0.30879,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-12818","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12818","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-12818","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-12818","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["postgresql"],"critical":[],"attention":null}