CVE-2025-12818
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:HAttack ComplexityHigh
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:NIntegrityNone
A:HAvailabilityHigh
Weaknesses
Affected Products
Postgres Professional
commercialaka postgres pro enterprise, postgres pro certified
АО «СберТех»
commercial·RUaka ao sbertech, сбертех
АО «ИВК»
commercial·RUaka ivk
PostgreSQL Global Development Group
oss-project·USaka postgresql
ООО «Ред Софт»
commercial·RUaka red soft
and 2 more affected products View all →
Exploitability
Official Patch Available
Attack Graph
Products CVE Techniques Tactics
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 technique Initial Access
References
https://www.postgresql.org/support/security/CVE-2025-12818
postgresql.org
https://postgrespro.ru/products/postgrespro/certified
postgrespro.ru
https://altsp.su/obnovleniya-bezopasnosti/
altsp.su
and 2 more references View all →
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-12818 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
