CVE-2025-8715: PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server
Noroxi assessment
Priority: Monitor (action score 35/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.42% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: n/a PostgreSQL 13.22, 14.19, 15.14; azl3 postgresql 16.9-1 on Azure Linux 3.0 16.10-1; cbl2 postgresql 14.18-1 on CBL Mariner 2.0 14.19-1.
Low priority for now. Upgrade to n/a PostgreSQL 13.22, 14.19, 15.14; azl3 postgresql 16.9-1 on Azure Linux 3.0 16.10-1; cbl2 postgresql 14.18-1 on CBL Mariner 2.0 14.19-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2025-09830
- ALSA-2025:14826
- ALSA-2025:14827
- ALSA-2025:14862
- ALSA-2025:14878
- ALSA-2025:14899
- ALSA-2025:15021
- ALSA-2025:15022
- ALSA-2025:15115
- DLA-4273-1
- openSUSE-SU-2025:15450-1
- openSUSE-SU-2025:15451-1
- openSUSE-SU-2025:15452-1
- openSUSE-SU-2025:15453-1
- openSUSE-SU-2025:15455-1
- RHSA-2025:14826
- RHSA-2025:14827
- RHSA-2025:14862
- RHSA-2025:14869
- RHSA-2025:14870
- Published
- Aug 14, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.4% · 36th percentile
- CWE
- CWE-93
Report tools
Action score
35
Monitor
Low priority for now.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · PostgreSQL
- 8.8
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (PostgreSQL). Independent of NVD's CPE analysis and usually ahead of it.
n/a PostgreSQL
- 17 and later · before 17.6affected · rpm
- 16 and later · before 16.10affected · rpm
- 15 and later · before 15.14affected · rpm
- 14 and later · before 14.19affected · rpm
- 11.20 and later · before 13.22affected · rpm
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | postgresql-test-rpm-macros | before 16.10-1.el10_0 | 16.10-1.el10_0 |
| AlmaLinux:8 | pg_repack | before 1.4.6-3.module_el8.9.0+3704+f1f917ce | 1.4.6-3.module_el8.9.0+3704+f1f917ce |
| AlmaLinux:8 | pg_repack | before 1.4.6-3.module_el8.6.0+2760+1746ec94 | 1.4.6-3.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | pg_repack | before 1.4.8-1.module_el8.9.0+3706+885c732e | 1.4.8-1.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | pg_repack | before 1.4.6-3.module_el8.6.0+3095+ee60d910 | 1.4.6-3.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | pg_repack | before 1.5.1-1.module_el8.10.0+3930+ecf33554 | 1.5.1-1.module_el8.10.0+3930+ecf33554 |
| AlmaLinux:8 | pgaudit | before 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 |
| AlmaLinux:8 | pgaudit | before 1.5.0-1.module_el8.6.0+3095+ee60d910 | 1.5.0-1.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | pgaudit | before 16.0-1.module_el8.10.0+3798+606ebb9f | 16.0-1.module_el8.10.0+3798+606ebb9f |
| AlmaLinux:8 | pgaudit | before 1.5.0-1.module_el8.6.0+2760+1746ec94 | 1.5.0-1.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | pgaudit | before 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 |
| AlmaLinux:8 | pgaudit | before 1.7.0-1.module_el8.9.0+3706+885c732e | 1.7.0-1.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | postgres-decoderbufs | before 0.10.0-2.module_el8.9.0+3704+f1f917ce | 0.10.0-2.module_el8.9.0+3704+f1f917ce |
| AlmaLinux:8 | postgres-decoderbufs | before 0.10.0-2.module_el8.6.0+3095+ee60d910 | 0.10.0-2.module_el8.6.0+3095+ee60d910 |
| AlmaLinux:8 | postgres-decoderbufs | before 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f |
| AlmaLinux:8 | postgres-decoderbufs | before 0.10.0-2.module_el8.6.0+2760+1746ec94 | 0.10.0-2.module_el8.6.0+2760+1746ec94 |
| AlmaLinux:8 | postgres-decoderbufs | before 1.9.7-1.Final.module_el8.9.0+3706+885c732e | 1.9.7-1.Final.module_el8.9.0+3706+885c732e |
| AlmaLinux:8 | postgresql | before 16.10-1.module_el8.10.0+4038+0fbad93c | 16.10-1.module_el8.10.0+4038+0fbad93c |
| AlmaLinux:8 | postgresql | before 15.14-1.module_el8.10.0+4041+afd30bb4 | 15.14-1.module_el8.10.0+4041+afd30bb4 |
| AlmaLinux:8 | postgresql | before 13.22-1.module_el8.10.0+4042+cb252986 | 13.22-1.module_el8.10.0+4042+cb252986 |
| AlmaLinux:8 | postgresql | before 12.22-5.module_el8.10.0+4043+6cac3079 | 12.22-5.module_el8.10.0+4043+6cac3079 |
| AlmaLinux:8 | postgresql-contrib | before 16.10-1.module_el8.10.0+4038+0fbad93c | 16.10-1.module_el8.10.0+4038+0fbad93c |
| AlmaLinux:8 | postgresql-contrib | before 12.22-5.module_el8.10.0+4043+6cac3079 | 12.22-5.module_el8.10.0+4043+6cac3079 |
| AlmaLinux:8 | postgresql-contrib | before 15.14-1.module_el8.10.0+4041+afd30bb4 | 15.14-1.module_el8.10.0+4041+afd30bb4 |
+96
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| n/a PostgreSQL | 13.22 | Vendor (CNA) |
| n/a PostgreSQL | 14.19 | Vendor (CNA) |
| n/a PostgreSQL | 15.14 | Vendor (CNA) |
| n/a PostgreSQL | 16.10 | Vendor (CNA) |
| n/a PostgreSQL | 17.6 | Vendor (CNA) |
| azl3 postgresql 16.9-1 on Azure Linux 3.0 | 16.10-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 postgresql 14.18-1 on CBL Mariner 2.0 | 14.19-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:pg_repack | 1.5.1-1.module_el9.6.0+146+c54fdeca · AlmaLinux:9 | Package registry (OSV) |
| almalinux:pgaudit | 16.0-1.module_el9.4.0+66+eb9878bc · AlmaLinux:9 | Package registry (OSV) |
| almalinux:pgvector | 0.6.2-2.module_el9.6.0+167+4e561146 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgres-decoderbufs | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-contrib | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-docs | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-plperl | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-plpython3 | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-pltcl | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-private-devel | 16.10-1.module_el9.6.0+174+80cb77f0 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:postgresql-test-rpm-macros | 16.10-1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| alpine:postgresql15 | 15.14-r0 · Alpine:v3.19 | Package registry (OSV) |
| alpine:postgresql16 | 16.10-r0 · Alpine:v3.19 | Package registry (OSV) |
| alpine:postgresql17 | 17.6-r0 · Alpine:v3.21 | Package registry (OSV) |
| debian:postgresql-13 | 13.22-0+deb11u1 · Debian:11 | Package registry (OSV) |
| debian:postgresql-15 | 15.14-0+deb12u1 · Debian:12 | Package registry (OSV) |
| debian:postgresql-17 | 17.6-0+deb13u1 · Debian:13 | Package registry (OSV) |
| opensuse:postgresql13 | 13.22-150600.14.11.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:postgresql14 | 14.19-150600.16.20.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:postgresql15 | 15.14-150600.16.20.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:postgresql16 | 16.10-150600.16.21.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:postgresql17 | 17.6-150600.13.16.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
+24
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-93 · Improper Neutralization of CRLF Sequences ('CRLF Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.