Advisory

UBUNTU-CVE-2025-8715

Also known as: CVE-2025-8715

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2025-08-14 13:15 UTC
Modified
2026-04-22 16:17 UTC

Affected packages and fixes

postgresql-12

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

postgresql-14

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 14.19-0ubuntu0.22.04.1 (ecosystem)

Fixed versions

14.19-0ubuntu0.22.04.1

Fix

  • Fixed version 14.19-0ubuntu0.22.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

postgresql-16

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 16.10-0ubuntu0.24.04.1 (ecosystem)

Fixed versions

16.10-0ubuntu0.24.04.1

Fix

  • Fixed version 16.10-0ubuntu0.24.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

postgresql-17

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 17.6-1 (ecosystem)

Fixed versions

17.6-1

Fix

  • Fixed version 17.6-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences