---
title: "CVE-2025-12818"
canonical_url: "https://pkgseek.com/security/CVE-2025-12818"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2025-12818

PostgreSQL is an advanced object-relational database management system (DBMS). Security Fix(es): * postgresql: CREATE STATISTICS does not check for schema CREATE privilege (CVE-2025-12817) * postgresql: libpq undersizes allocations, via integer wraparound (CVE-2025-12818) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

CVE-2025-12818 严重级别为 HIGH (7.5)，共索引 271 条受影响软件包构建记录，涉及 7 个发行版。

- **级别 / 评分**: HIGH (7.5)
- **受影响构建数**: 271
- **涉及发行版**: 7
- **已标明修复版本发行版**: Alibaba Cloud Linux, AlmaLinux, openSUSE, Oracle Linux, Red Hat Enterprise Linux, Rocky Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | libpq | 13.20-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | libpq-devel | 13.20-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-contrib | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-docs | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plperl | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plpython3 | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-pltcl | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server-devel | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-static | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test-rpm-macros | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade-devel | 13.22-1.0.1.al8 | 13.23-1.0.1.al8 |
| Alibaba Cloud Linux | 4 | libpq | 15.13-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | libpq-devel | 15.13-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-contrib | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-docs | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-plperl | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-plpython3 | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-pltcl | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-private-devel | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-private-libs | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-server | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-server-devel | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-static | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-test | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-test-rpm-macros | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-upgrade | 15.14-1.alnx4 | 15.15-1.alnx4 |
| Alibaba Cloud Linux | 4 | postgresql-upgrade-devel | 15.14-1.alnx4 | 15.15-1.alnx4 |
| AlmaLinux | 9 | pgaudit | 1.7.0-1.module_el9.3.0+52+21733919 | 1.7.0-1.module_el9.3.0+52+21733919 |
| AlmaLinux | 9 | pg_repack | 1.4.8-2.module_el9.5.0+119+18833d03 | 1.5.1-1.module_el9.6.0+146+c54fdeca |
| AlmaLinux | 9 | postgres-decoderbufs | 1.9.7-1.Final.module_el9.3.0+52+21733919 | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc |
| AlmaLinux | 9 | postgresql | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-contrib | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-docs | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-plperl | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-plpython3 | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-pltcl | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-private-devel | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-private-libs | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-server | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-server-devel | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-static | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-test | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-test-rpm-macros | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-upgrade | 13.23-9.el9_9 | 16.11-1.module_el9.7.0+202+21427d8a |
| AlmaLinux | 9 | postgresql-upgrade-devel | 15.19-1.module_el9.8.0+318+764e137c | 16.11-1.module_el9.7.0+202+21427d8a |
| openSUSE | 15.6 | libecpg6 | 17.6-150600.13.16.1 | 18.1-150600.13.3.1 |
| openSUSE | 15.6 | libecpg6-32bit | 17.6-150600.13.16.1 | 18.1-150600.13.3.1 |
| openSUSE | 15.6 | libpq5 | 17.6-150600.13.16.1 | 18.1-150600.13.3.1 |
| openSUSE | 15.6 | libpq5-32bit | 17.6-150600.13.16.1 | 18.1-150600.13.3.1 |
| openSUSE | 15.6 | postgresql | 17-150600.17.6.1 | 18-150600.17.9.1 |
| openSUSE | 15.6 | postgresql13 | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-contrib | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-devel | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-docs | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-llvmjit | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-llvmjit-devel | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-plperl | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-plpython | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-pltcl | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-server | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-server-devel | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql13-test | 13.22-150600.14.11.1 | 13.23-150600.14.14.1 |
| openSUSE | 15.6 | postgresql14 | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-contrib | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-devel | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-docs | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-llvmjit | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-llvmjit-devel | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-plperl | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-plpython | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-pltcl | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-server | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-server-devel | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql14-test | 14.19-150600.16.20.1 | 14.20-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15 | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-contrib | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-devel | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-docs | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-llvmjit | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-llvmjit-devel | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-plperl | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-plpython | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-pltcl | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-server | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-server-devel | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql15-test | 15.14-150600.16.20.1 | 15.15-150600.16.23.1 |
| openSUSE | 15.6 | postgresql16 | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-contrib | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-devel | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-docs | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-llvmjit | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-llvmjit-devel | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-plperl | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-plpython | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |
| openSUSE | 15.6 | postgresql16-pltcl | 16.10-150600.16.21.1 | 16.11-150600.16.25.1 |

_Showing 100 of 271 total affected builds._
