CVE-2025-13780: pgAdmin4 Meta-Command Filter Command Execution Vulnerability

pgadmin4 Updated 29 Jun 2026

Summary

29/06/2026
Yes i
Critical
9.1

CVE-2025-13780: pgadmin4 has a Meta-Command Filter Command Execution. Affects pgadmin4 versions < 9.11. Fixed in 9.11. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

pgAdmin4 is a popular open-source administration and development platform for PostgreSQL, allowing users to manage databases through a web interface. It provides features such as query execution, database design, and user management. However, a recent vulnerability has been identified that affects its ability to properly filter meta-commands, potentially leading to security risks during database restore operations.

Vulnerability Detail

The vulnerability arises from the PLAIN restore meta-command filter in pgAdmin4, which fails to detect meta-commands when a SQL file starts with a UTF-8 Byte Order Mark (EF BB BF) or other special byte sequences. The filter utilizes the function has_meta_commands(), which scans raw bytes with a regular expression that does not ignore these bytes. As a result, meta-commands like \! can go undetected, allowing for remote command execution when pgAdmin invokes psql with the --file option, leading to serious security implications.

How To Fix

Latest published version: 9.18.0 as of 22 Oct 2026

pip install --upgrade "pgadmin4==9.18.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

9.11

This is the first release that contains the fix.

pip install --upgrade "pgadmin4==9.11"

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

Workaround

As a temporary workaround, users can manually check SQL files for any meta-commands before executing restore operations. Additionally, avoid using SQL files that contain UTF-8 Byte Order Marks or special byte sequences until the package is updated.

Conclusion

The CVE-2025-13780 vulnerability in pgAdmin4 poses a significant risk due to its potential for remote command execution. Users are strongly advised to update to the latest version to ensure their systems are secure. Additionally, temporary workarounds can help mitigate risks until the update is applied.

See every vulnerability recorded for pgadmin4 →

Share this vulnerability

FAQ

CVE-2025-13780 is a vulnerability in pgAdmin4 that allows for command execution due to improper filtering of meta-commands in SQL files.

This vulnerability can lead to remote command execution during database restore operations, potentially compromising your database security.

You should upgrade to pgAdmin4 version 9.11 or later to mitigate the vulnerability.

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

The CVSS score of this vulnerability is 9.1, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for pgadmin4.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 9.18.0 as of 22 Oct 2026

pip install --upgrade "pgadmin4==9.18.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

9.11

This is the first release that contains the fix.

pip install --upgrade "pgadmin4==9.11"

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