OESA-2025-2725 (CVE-2025-12817)
Vulnerability from osv_openeuler – Published: 2025-11-22 11:09 – Updated: 2026-08-06 11:09 – Source websitePostgreSQL is an advanced Object-Relational database management system (DBMS). The base postgresql package contains the client programs that you'll need to access a PostgreSQL DBMS server, as well as HTML documentation for the whole system. These client programs can be located on the same machine as the PostgreSQL server, or on a remote machine that accesses a PostgreSQL server over a network connection. The PostgreSQL server can be found in the postgresql-server sub-package.
Security Fix(es):
Missing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against other CREATE STATISTICS users by creating in any schema. A later CREATE STATISTICS for the same name, from a user having the CREATE privilege, would then fail. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.(CVE-2025-12817)
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.(CVE-2025-12818)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"postgresql-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-contrib-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-debuginfo-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-debugsource-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-docs-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-llvmjit-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-plperl-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-plpython3-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-pltcl-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-private-devel-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-private-libs-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-server-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-server-devel-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-static-15.15-1.oe2403sp1.aarch64.rpm",
"postgresql-test-15.15-1.oe2403sp1.aarch64.rpm"
],
"noarch": [
"postgresql-test-rpm-macros-15.15-1.oe2403sp1.noarch.rpm"
],
"src": [
"postgresql-15.15-1.oe2403sp1.src.rpm"
],
"x86_64": [
"postgresql-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-contrib-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-debuginfo-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-debugsource-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-docs-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-llvmjit-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-plperl-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-plpython3-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-pltcl-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-private-devel-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-private-libs-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-server-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-server-devel-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-static-15.15-1.oe2403sp1.x86_64.rpm",
"postgresql-test-15.15-1.oe2403sp1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS-SP1",
"name": "postgresql",
"purl": "pkg:rpm/openEuler/postgresql\u0026distro=openEuler-24.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "15.15-1.oe2403sp1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "Medium"
},
"details": "PostgreSQL is an advanced Object-Relational database management system (DBMS). The base postgresql package contains the client programs that you\u0026amp;apos;ll need to access a PostgreSQL DBMS server, as well as HTML documentation for the whole system. These client programs can be located on the same machine as the PostgreSQL server, or on a remote machine that accesses a PostgreSQL server over a network connection. The PostgreSQL server can be found in the postgresql-server sub-package.\r\n\r\nSecurity Fix(es):\n\nMissing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against other CREATE STATISTICS users by creating in any schema. A later CREATE STATISTICS for the same name, from a user having the CREATE privilege, would then fail. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.(CVE-2025-12817)\n\nInteger 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.(CVE-2025-12818)",
"id": "OESA-2025-2725",
"modified": "2026-08-06T11:09:50Z",
"published": "2025-11-22T11:09:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-2725"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-12817"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-12818"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "postgresql security update",
"upstream": [
"CVE-2025-12817",
"CVE-2025-12818"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.