pgadmin.org pgAdmin 4
Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)
pgAdmin versions up to 9.9 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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 9.9
Mitigation
Upgrade pgadmin4 to 9.10 or later.
Timeline
Days relative to CVE publicationFirst public PoC 11 days after publication; not in CISA KEV. First PoC: djayaGit/Blackash-CVE-2025-12762 (created 24 Nov 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| djayaGit/Blackash-CVE-2025-12762 | 24 Nov 2025 +11 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /authenticate/login
- Body markers
email=admin@example.com" # Valid login emailpassword=Admin123!" # Valid passwordcsrf_token=internal_button=Logininapplication/x-www-form-urlencoded- Ports
- 5050
- Seen in
- 1 repo: djayaGit/Blackash-CVE-2025-12762
- Evidence
- djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:26
POST /misc/file_manager/upload
- Body markers
name="file"inmultipart/form-data- Ports
- 5050
- Seen in
- 1 repo: djayaGit/Blackash-CVE-2025-12762
- Evidence
- djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:45
POST /restore/job/1
- Content-Type
application/json- Ports
- 5050
- Seen in
- 1 repo: djayaGit/Blackash-CVE-2025-12762
- Evidence
- djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:61
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/authenticate/login(?:[?#].*)?$
(?i)^/misc/file_manager/upload(?:[?#].*)?$
(?i)^/restore/job/1(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5050] (msg:"GG PoC-Monitor CVE-2025-12762 pgadmin.org pgAdmin 4 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/authenticate/login"; http.request_body; content:"email=admin@example.com|22| # Valid login email"; http.request_body; content:"password=Admin123!|22| # Valid password"; http.request_body; content:"csrf_token="; http.request_body; content:"internal_button=Login"; reference:url,poc.griffinguard.io/cve/CVE-2025-12762; classtype:web-application-attack; sid:9710548; rev:1;)
alert http any any -> $HOME_NET [5050] (msg:"GG PoC-Monitor CVE-2025-12762 pgadmin.org pgAdmin 4 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/misc/file_manager/upload"; http.request_body; content:"name=|22|file|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-12762; classtype:web-application-attack; sid:9668386; rev:1;)
alert http any any -> $HOME_NET [5050] (msg:"GG PoC-Monitor CVE-2025-12762 pgadmin.org pgAdmin 4 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/restore/job/1"; reference:url,poc.griffinguard.io/cve/CVE-2025-12762; classtype:web-application-attack; sid:9115459; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: pgadmin.org pgAdmin 4 exploit attempt (CVE-2025-12762)
id: gg-pocmon-cve-2025-12762-9710548
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-12762. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-12762
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/authenticate/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.12762
title: pgadmin.org pgAdmin 4 exploit attempt (CVE-2025-12762)
id: gg-pocmon-cve-2025-12762-9668386
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-12762. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-12762
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/misc/file_manager/upload'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.12762
title: pgadmin.org pgAdmin 4 exploit attempt (CVE-2025-12762)
id: gg-pocmon-cve-2025-12762-9115459
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-12762. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-12762
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/restore/job/1'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.12762