{"id":"CVE-2025-12818","aliases":["CVE-2025-12818","BIT-POSTGRESQL-2025-12818"],"related":[],"kind":"vulnerability","state":"published","title":"PostgreSQL libpq undersizes allocations, via integer wraparound","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El desbordamiento de enteros en múltiples funciones de la biblioteca cliente libpq de PostgreSQL permite que un proveedor de entrada de aplicación o un par de red provoque que libpq asigne un tamaño insuficiente y escriba fuera de los límites por cientos de megabytes. Esto resulta en un fallo de segmentación para la aplicación que utiliza libpq. Las versiones anteriores a PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20 y 13.23 están afectadas.","source":"nvd"}],"published":"2025-11-13T13:00:12.911Z","modified":"2026-10-19T13:10:00.110Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"rpm","introduced":"18","fixed":"18.1","status":"affected"},{"type":"rpm","introduced":"17","fixed":"17.7","status":"affected"},{"type":"rpm","introduced":"16","fixed":"16.11","status":"affected"},{"type":"rpm","introduced":"15","fixed":"15.15","status":"affected"},{"type":"rpm","introduced":"14","fixed":"14.20","status":"affected"},{"type":"rpm","introduced":"0","fixed":"13.23","status":"affected"}],"product":"PostgreSQL","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"13.23.0"},{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"14.20.0"},{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.15.0"},{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.11.0"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.7.0"},{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.1.0"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-12818/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12818","tags":["web"],"sources":["bitnami"]}],"credits":["The PostgreSQL project thanks Aleksey Solovev (Positive Technologies) for reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-11-13T13:59:26.597Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-12818","url":"https://www.cve.org/CVERecord?id=CVE-2025-12818","licence":"CVE Terms of Use","modified":"2025-11-13T13:59:33.436Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-12818","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12818","licence":"Public domain","modified":"2026-10-19T13:10:00.110Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2025-12818","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2025-12818","licence":"Apache-2.0","modified":"2025-11-21T09:27:44.222Z"}],"updatedAt":"2026-11-25T22:59:07.624Z","epss":{"score":0.00364,"percentile":0.32265,"date":"2026-12-01T12:00:22.000Z"}}