CVE-2025-12818

Publication date 13 November 2025

Last updated 4 December 2025


Ubuntu priority

Cvss 3 Severity Score

5.9 · Medium

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
postgresql-18 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
postgresql-17 25.10 questing
Fixed 17.7-0ubuntu0.25.10.1
25.04 plucky
Fixed 17.7-0ubuntu0.25.04.1
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
postgresql-16 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble
Fixed 16.11-0ubuntu0.24.04.1
22.04 LTS jammy Not in release
postgresql-14 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy
Fixed 14.20-0ubuntu0.22.04.1
postgresql-12 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal
Needs evaluation
postgresql-10 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
18.04 LTS bionic
Needs evaluation
postgresql-9.5 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
16.04 LTS xenial
Needs evaluation
postgresql-9.3 25.10 questing Not in release
25.04 plucky Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
14.04 LTS trusty
Vulnerable, fix deferred

Notes


leosilva

PostgreSQL 9.3 is end of life upstream, and no updates are are available. Marking as deferred in -esm-main releases.


mdeslaur

postgresql-17 is likely to be removed from resolute before release, marking as deferred for now.

Severity score breakdown

Parameter Value
Base score 5.9 · Medium
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

Related Ubuntu Security Notices (USN)

    • USN-7908-1
    • PostgreSQL vulnerabilities
    • 3 December 2025

Other references