Loading...
Skip to main content

CVE-2025-13780 — Vulnerability in pgadmin4 — CVE Details

CRITICAL

pgadmin4 has a Meta-Command Filter Command Execution

Published June 29, 2026Updated July 1, 2026Source: osv

Summary

The PLAIN restore meta-command filter introduced in pgAdmin as part of the fix for CVE-2025-12762 does not detect meta-commands when a SQL file begins with a UTF-8 Byte Order Mark (EF BB BF) or other special byte sequences. The implemented filter uses the function `has_meta_commands()`, which scans raw bytes using a regular expression. The regex does not treat the bytes as ignorable, so meta-commands such as `\\!` remain undetected. When pgAdmin invokes psql with --file, psql strips the bytes and executes the command. This can result in remote command execution during a restore operation.

Advisory Timeline

  • First published June 29, 2026 (105 days ago).
  • Last revised July 1, 2026 — 2 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update pgadmin4 to 9.11 or later
pip install "pgadmin4>=9.11"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
pgadmin4
pypi
4.20, 4.22, 4.23, 4.24 (+69 more)9.11

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

Frequently Asked Questions

What is CVE-2025-13780?
pgadmin4 has a Meta-Command Filter Command Execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2025-13780?
CVE-2025-13780 affects pgadmin4. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-13780 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

PYSEC-2026-450
GHSA-fxmw-jcgr-w44v

Related CVEs

  • CVE-2025-2946
    CRITICAL

    pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering

  • CVE-2025-2945
    CRITICAL

    pgAdmin 4 Vulnerable to Remote Code Execution

  • CVE-2026-7813
    CRITICAL

    pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules

  • CVE-2024-2044
    CRITICAL

    pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user

  • CVE-2025-12762
    CRITICAL

    pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

  • CVE-2025-2945
    CRITICAL

    pgAdmin 4 Vulnerable to Remote Code Execution

  • CVE-2026-7813
    CRITICAL

    pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies