Code Injection in pgadmin4
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2025-13780 has been found in pgadmin4.
Confidential information can be exposed externally. CVSS score: 9.1/10.
What to do: upgrade pgadmin4 to 9.11 or later.
If unsure, ask your IT team or search "pgadmin4 CVE-2025-13780" on the vendor's site.
CVE-2025-13780 (pgadmin4) — CWE-94 / CVSS v3 9.1
Attack vector: remote (network-reachable) / no user interaction
Patched: 9.11 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Arbitrary code execution (CWE-94) exists in pgadmin4.
Check the vendor advisory for the affected versions of pgadmin4.
Severity: Critical (CVSS 9.1/10). Confidential information can be exposed externally.
Update to 9.11.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'pgadmin4' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'pgadmin4' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
pgadmin4を grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade pgadmin4 to 9.11ステージング環境で 9.11 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PyPIpgadmin4 |
< 9.11→ 9.11 |
9.11 |
| pgadmin.orgpgAdmin 4 |
≤ 9.10→ Not listed |
Not listed |
| pippgadmin4 |
< 9.11→ 9.11 |
9.11 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web pypi.org
- web github.com
- web github.com