CVE-2025-13780
highpriority · attend · 45EPSS 0.009 · 61 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
pgAdmin versions up to 9.10 are affected by a Remote Code Execution (RCE) vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. This issue allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.3–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (3)
Public proof-of-concept and weaponised exploit code.
- meenakshisl/PoC-CVE-2025-13780PoC for CVE-2025-13780PoC · poc_in_github
- zeropwn/pgadmin4-9.10-CVE-2025-13780Proof of concept for CVE-2025-13780PoC · poc_in_github
affected products (11)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-2824pgAdmin: Schwachstelle ermöglicht CodeausführungDeutsch2025-12-10csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in pgAdmin ausnutzen, um beliebigen Programmcode auszuführen.
- GHSA-fxmw-jcgr-w44vpgadmin4 has a Meta-Command Filter Command Execution2025-12-11ghsa · osvUS
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.
- PYSEC-2026-450pgadmin4 has a Meta-Command Filter Command Execution2026-06-29vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-13780cnnvd
- https://github.com/pgadmin-org/pgadmin4/issues/9368cnnvd
- https://vigilance.fr/vulnerability/pgAdmin-code-execution-via-PLAIN-format-dump-files-restores-49187cnnvd
- https://www.pgadmin.org/download/Patchcnnvd
- https://github.com/pgadmin-org/pgadmin4/issues/9368enisa_euvd
- https://github.com/pgadmin-org/pgadmin4/issues/9368Issue Trackingnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan