Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-8715

published high CVSS 3.1 · 8.8

PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server

Published
14 Aug 2025, 13:00:07 UTC
Updated
26 Feb 2026, 17:48:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — PostgreSQL17 to < 17.6 · 16 to < 16.10 · 15 to < 15.14 · 14 to < 14.19 · 11.20 to < 13.22 · Other versions: unaffected Affected Not stated PostgreSQL
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2POSTGRESQL13-2025-012 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2POSTGRESQL14-2025-019 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1158 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1165 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 postgresql-test-rpm-macros Advisory build 16.10-1.el10_0 ALSA-2025:14826
AlmaLinux 8 pg_repack Advisory build 1.4.6-3.module_el8.6.0+2760+1746ec94 ALSA-2025:15021
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2025-1177 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 pg_repack Advisory build 1.4.6-3.module_el8.6.0+3095+ee60d910 ALSA-2025:15021
AlmaLinux 8 pg_repack Advisory build 1.4.6-3.module_el8.9.0+3704+f1f917ce ALSA-2025:15115
AlmaLinux 8 pg_repack Advisory build 1.4.8-1.module_el8.9.0+3706+885c732e ALSA-2025:15022
AlmaLinux 8 pg_repack Advisory build 1.5.1-1.module_el8.10.0+3930+ecf33554 ALSA-2025:14899
AlmaLinux 8 pgaudit Advisory build 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 ALSA-2025:15115
AlmaLinux 8 pgaudit Advisory build 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 ALSA-2025:15115
AlmaLinux 8 pgaudit Advisory build 1.5.0-1.module_el8.6.0+2760+1746ec94 ALSA-2025:15021
AlmaLinux 8 pgaudit Advisory build 1.5.0-1.module_el8.6.0+3095+ee60d910 ALSA-2025:15021
AlmaLinux 8 pgaudit Advisory build 1.7.0-1.module_el8.9.0+3706+885c732e ALSA-2025:15022
AlmaLinux 8 pgaudit Advisory build 16.0-1.module_el8.10.0+3798+606ebb9f ALSA-2025:14899
AlmaLinux 8 postgres-decoderbufs Advisory build 0.10.0-2.module_el8.6.0+2760+1746ec94 ALSA-2025:15021
AlmaLinux 8 postgres-decoderbufs Advisory build 0.10.0-2.module_el8.6.0+3095+ee60d910 ALSA-2025:15021
AlmaLinux 8 postgres-decoderbufs Advisory build 0.10.0-2.module_el8.9.0+3704+f1f917ce ALSA-2025:15115
AlmaLinux 8 postgres-decoderbufs Advisory build 1.9.7-1.Final.module_el8.9.0+3706+885c732e ALSA-2025:15022
AlmaLinux 8 postgres-decoderbufs Advisory build 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f ALSA-2025:14899
AlmaLinux 8 postgresql Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-contrib Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-contrib Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-contrib Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-contrib Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-docs Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-docs Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-docs Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-docs Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-plperl Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-plperl Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-plperl Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-plperl Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-plpython3 Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-plpython3 Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-plpython3 Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-plpython3 Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-pltcl Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-pltcl Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-pltcl Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-pltcl Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-private-devel Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-private-devel Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-private-libs Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-private-libs Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-server Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-server Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-server Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-server Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-server-devel Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-server-devel Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-server-devel Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-server-devel Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-static Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-static Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-static Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-static Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-test Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-test Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-test Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-test Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-test-rpm-macros Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-test-rpm-macros Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-test-rpm-macros Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-test-rpm-macros Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-upgrade Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-upgrade Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-upgrade Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-upgrade Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 8 postgresql-upgrade-devel Advisory build 12.22-5.module_el8.10.0+4043+6cac3079 ALSA-2025:15115
AlmaLinux 8 postgresql-upgrade-devel Advisory build 13.22-1.module_el8.10.0+4042+cb252986 ALSA-2025:15021
AlmaLinux 8 postgresql-upgrade-devel Advisory build 15.14-1.module_el8.10.0+4041+afd30bb4 ALSA-2025:15022
AlmaLinux 8 postgresql-upgrade-devel Advisory build 16.10-1.module_el8.10.0+4038+0fbad93c ALSA-2025:14899
AlmaLinux 9 pg_repack Advisory build 1.4.8-2.module_el9.5.0+119+18833d03 ALSA-2025:14862
AlmaLinux 9 pg_repack Advisory build 1.5.1-1.module_el9.6.0+146+c54fdeca ALSA-2025:14827
AlmaLinux 9 pgaudit Advisory build 1.7.0-1.module_el9.3.0+52+21733919 ALSA-2025:14862
AlmaLinux 9 pgaudit Advisory build 16.0-1.module_el9.4.0+66+eb9878bc ALSA-2025:14827
AlmaLinux 9 pgvector Advisory build 0.6.2-2.module_el9.6.0+167+4e561146 ALSA-2025:14827
AlmaLinux 9 postgres-decoderbufs Advisory build 1.9.7-1.Final.module_el9.3.0+52+21733919 ALSA-2025:14862
AlmaLinux 9 postgres-decoderbufs Advisory build 2.4.0-1.Final.module_el9.4.0+66+eb9878bc ALSA-2025:14827
AlmaLinux 9 postgresql Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-contrib Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-contrib Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql-contrib Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-docs Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-docs Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql-docs Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-plperl Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-plperl Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql-plperl Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-plpython3 Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-plpython3 Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql-plpython3 Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-pltcl Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-pltcl Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862
AlmaLinux 9 postgresql-pltcl Advisory build 16.10-1.module_el9.6.0+174+80cb77f0 ALSA-2025:14827
AlmaLinux 9 postgresql-private-devel Advisory build 13.22-1.el9_6 ALSA-2025:14878
AlmaLinux 9 postgresql-private-devel Advisory build 15.14-1.module_el9.6.0+176+c508cfa2 ALSA-2025:14862

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · PostgreSQL · cna

Vendor advisories explicitly linked to this CVE.

111

Showing the first 100 linked advisory records.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
PostgreSQL · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a PostgreSQL 17 to < 17.6 (affected · rpm)16 to < 16.10 (affected · rpm)15 to < 15.14 (affected · rpm)14 to < 14.19 (affected · rpm)11.20 to < 13.22 (affected · rpm)Default: unaffected PostgreSQL · cna

Weaknesses

1
  • CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') (PostgreSQL · cna)

References

1

Provider assertions

2

PostgreSQL · cna

PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
056db7a30008fdee3a426cd16cf27d9850dcb73032e5da725a4a98293d750984
Ingested
23 Sep 2026, 08:59:12 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected