SecurityContext

CVE-2025-8715: PostgreSQL - Command Injection

  • Cve: CVE-2025-8715
  • Name: PostgreSQL - Command Injection
  • Description: 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.
  • Impact: Local users can execute arbitrary code as the client OS account during database restore, potentially leading to full system compromise.
  • Remediation: Upgrade to PostgreSQL 17.6, 16.10, 15.14, 14.19, 13.22 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00493
  • Epss percentile: 0.43178
  • Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
  • Published at: 2025-08-14T13:15:37Z
  • Age in days: 467
  • Modified at: 2026-06-17T10:07:29Z
  • References total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-8715
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-93Improper Neutralization of CRLF Sequences

References

UrlSourceTags
https://www.postgresql.org/support/security/CVE-2025-8715/nvd

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts