Critical Security Flaw in PostgreSQL: Arbitrary Code Execution Vulnerabilities

postgresql Updated 02 Oct 2025

Summary

28/08/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:14878: Important: postgresql security update. Affects postgresql versions < 13.22-1.el9_6. Fixed in 13.22-1.el9_6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

PostgreSQL is an advanced object-relational database management system (DBMS) known for its robustness, extensibility, and compliance with SQL standards. It is widely used for managing large datasets and supports various programming languages. However, recent vulnerabilities have been identified that could allow attackers to execute arbitrary code during the restore operation, posing significant risks to data integrity and system security.

Vulnerability Detail

The vulnerabilities identified in PostgreSQL (CVE-2025-8714 and CVE-2025-8715) allow for arbitrary code execution during the restore operation. This issue arises from improper handling of certain inputs, which can be exploited by attackers to execute malicious code on the server. The ramifications of this vulnerability include potential data breaches, unauthorized access to sensitive information, and complete system compromise.

How To Fix

Minimum fixed version

13.22-1.el9_6

This is the first release that contains the fix.

sudo dnf update postgresql

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can restrict access to the PostgreSQL restore operation by implementing strict user permissions and avoiding the use of untrusted input during the restore process. Additionally, consider disabling the restore functionality until the patch is applied.

Conclusion

The identified vulnerabilities in PostgreSQL present serious security risks that can lead to arbitrary code execution. It is crucial to update to the patched version to mitigate these risks and ensure the integrity of your database systems. Implementing temporary workarounds can provide some protection until the update is applied.

See every vulnerability recorded for postgresql →

Share this vulnerability

FAQ

CVE-2025-8714 is a vulnerability in PostgreSQL that allows arbitrary code execution during the restore operation due to improper input handling.

CVE-2025-8715 is another vulnerability in PostgreSQL that also permits arbitrary code execution during the restore operation.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate update is not possible, implement strict user permissions and avoid using untrusted input during the restore operation as a temporary workaround.

Failing to address these vulnerabilities can lead to unauthorized access, data breaches, and potential system compromise, which can have severe consequences for your organization.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql.

How To Fix

Minimum fixed version

13.22-1.el9_6

This is the first release that contains the fix.

sudo dnf update postgresql

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback