VDB

CVE-2025-8715

CVE-2025-8715 PUBLISHED CVSS 8.8 HIGH

Reported by postgresql · Published August 14, 2025

Improper neutralization of newlines in pg_dump in PostgreSQL allows a user 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 inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. Versions before 11.20 are unaffected. CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postgresql16-plperlAmazon Linux16.10-1.amzn2023.0.1
postgresql17-plpython3Amazon Linux17.6-1.amzn2023.0.1
postgresql17Alpine17.6-r0
postgresql17-upgradeAmazon Linux17.6-1.amzn2023.0.1
postgresql15-plperlAmazon Linux15.14-1.amzn2023.0.1
postgresql15Amazon Linux15.14-1.amzn2023.0.1
postgresql17-pltclAmazon Linux17.6-1.amzn2023.0.1
postgresql15-private-develAmazon Linux15.14-1.amzn2023.0.1
postgresql16-testAmazon Linux16.10-1.amzn2023.0.1
postgresql15-plpython3Amazon Linux15.14-1.amzn2023.0.1
postgresql16-test-rpm-macrosAmazon Linux16.10-1.amzn2023.0.1
postgresql16Alpine16.10-r0

42 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/aPostgreSQL17, 16, 15
amazon:2023postgresql16-plperl0
amazon:2023postgresql17-plpython30
alpinepostgresql170
amazon:2023postgresql17-upgrade0
amazon:2023postgresql15-plperl0
amazon:2023postgresql150
amazon:2023postgresql17-pltcl0
amazon:2023postgresql15-private-devel0
amazon:2023postgresql16-test0
amazon:2023postgresql15-plpython30
amazon:2023postgresql16-test-rpm-macros0
alpinepostgresql160
amazon:2023postgresql17-docs0
n/aPostgreSQL14, 17, 16
amazon:2023postgresql16-upgrade-devel0
amazon:2023postgresql16-server0
amazon:2023postgresql16-private-libs0
amazon:2023postgresql15-pltcl0
amazon:2023postgresql15-test0

…and 33 more

Timeline

  • Aug 14, 2025 CVE Published
  • Aug 15, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 26, 2026 CVE Updated
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Apr 18, 2026 PoC Published
  • Jun 2, 2026 Security Advisory (29 in total, the first dated here)
  • Oct 21, 2026 Distribution Patch (22 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-8715
vulnetix vdb fixes CVE-2025-8715

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-8715/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›