PoC Monitor
← All CVEs
CVE-2025-12762published 13 Nov 2025 13:00 UTCData: JSON · API

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.

First public PoC 11 daysafter publication · 24 Nov 2025
Public PoCs11 on GitHub
CVSS9.8critical · scored by NVD · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

pgadmin.org pgAdmin 4
  • <= 9.9
pgadmin4 (PyPI)
  • < 9.10

Fixed in 9.10

from GitHub Security Advisory GHSA-w2p4-p4rh-qcm3

Mitigation

Upgrade pgadmin4 to 9.10 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8+10+12CVE published13 Nov 2025 · t = 0First public PoC24 Nov 2025 · t+11d

First 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
RepositoryCreatedStarsAssessment
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 repo

POST /authenticate/login

Body markers
email=admin@example.com" # Valid login email password=Admin123!" # Valid password csrf_token= internal_button=Login in application/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" in multipart/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.

POST /authenticate/login
(?i)^/authenticate/login(?:[?#].*)?$
POST /misc/file_manager/upload
(?i)^/misc/file_manager/upload(?:[?#].*)?$
POST /restore/job/1
(?i)^/restore/job/1(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /authenticate/login
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;)
POST /misc/file_manager/upload
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;)
POST /restore/job/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.

POST /authenticate/login
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
POST /misc/file_manager/upload
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
POST /restore/job/1
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