{
  "id": "CVE-2025-12762",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-12762",
  "published_at": "2025-11-13T13:00:02.005Z",
  "title": "Remote Code Execution vulnerability when restoring PLAIN-format SQL dumps in server mode (pgAdmin 4)",
  "vendor": "pgadmin.org",
  "product": "pgAdmin 4",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-11-24T07:18:09Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 10.8,
    "repo": "djayaGit/Blackash-CVE-2025-12762",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "djayaGit/Blackash-CVE-2025-12762",
      "url": "https://github.com/djayaGit/Blackash-CVE-2025-12762",
      "created_at": "2025-11-24T07:18:09Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-06-04T15:54:49Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "pgadmin.org",
        "product": "pgAdmin 4",
        "ranges": [
          "\u003c= 9.9"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "pgadmin4",
        "ranges": [
          "\u003c 9.10"
        ],
        "fixed_in": [
          "9.10"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-w2p4-p4rh-qcm3"
      }
    ],
    "upgrade": [
      "Upgrade pgadmin4 to 9.10 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/authenticate/login",
      "body_markers": [
        "email=admin@example.com\"             # Valid login email",
        "password=Admin123!\"                     # Valid password",
        "csrf_token=",
        "internal_button=Login"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "djayaGit/Blackash-CVE-2025-12762"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:26"
      ]
    },
    {
      "method": "POST",
      "path_template": "/misc/file_manager/upload",
      "body_markers": [
        "name=\"file\""
      ],
      "content_type": "multipart/form-data",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "djayaGit/Blackash-CVE-2025-12762"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:45"
      ]
    },
    {
      "method": "POST",
      "path_template": "/restore/job/1",
      "content_type": "application/json",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "djayaGit/Blackash-CVE-2025-12762"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "djayaGit/Blackash-CVE-2025-12762/CVE-2025-12762.py:61"
      ]
    }
  ],
  "rules": []
}
