Security advisory
Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-8714
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 12:13 UTC · Revision 1
Source evidence
Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.
osv:CVE-2025-8714
Complete source record
{
"id": "acb8acdd32fd99ec7a858d5e935561b4deee49794c617dcc0a4cc1b6cf79779a",
"url": "https://osv.dev/vulnerability/CVE-2025-8714",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-8714",
"summary": "Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.",
"evidence": "osv:CVE-2025-8714",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2025-8714",
"aliases": [
"BIT-postgresql-2025-8714",
"CVE-2025-8714"
],
"affected": [],
"modified": "2026-10-14T15:12:04.180994219Z",
"provider": "osv",
"references": [
"https://www.postgresql.org/support/security/CVE-2025-8714/"
]
},
"related_cves": [
{
"value": "CVE-2025-8714",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 316325,
"published_at": "2025-08-14T13:15:37+00:00"
}