{
  "id": "CVE-2025-2945",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-2945",
  "published_at": "2025-04-03T12:23:14.792Z",
  "title": "pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment",
  "vendor": "pgadmin.org",
  "product": "pgAdmin 4",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-04-10T00:32:10Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 6.5,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_query_tool_authenticated.rb"
  },
  "poc_repo_count": 7,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Remote Code Execution security vulnerability in pgAdmin 4  (Query Tool and Cloud Deployment modules).\n\nThe vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution.\n\n\nThis issue affects pgAdmin 4: before 9.2.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.9,
    "nvd": 8.8
  },
  "repos": [
    {
      "repo": "abrewer251/CVE-2025-2945_PgAdmin_PoC",
      "url": "https://github.com/abrewer251/CVE-2025-2945_PgAdmin_PoC",
      "created_at": "2025-06-03T18:17:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-11-08T18:53:33Z"
    },
    {
      "repo": "Cycloctane/cve-2025-2945-poc",
      "url": "https://github.com/Cycloctane/cve-2025-2945-poc",
      "created_at": "2025-09-13T07:33:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 8,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-08-13T15:49:42Z"
    },
    {
      "repo": "I3r1h0n/pgAdminOpendoor",
      "url": "https://github.com/I3r1h0n/pgAdminOpendoor",
      "created_at": "2025-11-10T14:45:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-07-30T11:20:09Z"
    },
    {
      "repo": "Udayveer17/CVE-2025-2945-pgAdmin4-Authenticated-RCE-PoC-",
      "url": "https://github.com/Udayveer17/CVE-2025-2945-pgAdmin4-Authenticated-RCE-PoC-",
      "created_at": "2025-11-26T12:44:20Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-02-25T16:37:18Z"
    },
    {
      "repo": "kairosart/Fries",
      "url": "https://github.com/kairosart/Fries",
      "created_at": "2025-12-19T18:32:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2014-01-30T13:21:49Z"
    },
    {
      "repo": "plur1bu5/CVE-2025-2945-pgadmin-rce",
      "url": "https://github.com/plur1bu5/CVE-2025-2945-pgadmin-rce",
      "created_at": "2026-03-16T23:38:26Z",
      "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": "2026-02-08T16:20:35Z"
    },
    {
      "repo": "g0d150ne/CVE-2025-2945",
      "url": "https://github.com/g0d150ne/CVE-2025-2945",
      "created_at": "2026-08-10T20:06:45Z",
      "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": "2025-06-04T11:50:09Z"
    },
    {
      "repo": "Khashayarnzk/CVE-2025-2945-pgAdmin-RCE",
      "url": "https://github.com/Khashayarnzk/CVE-2025-2945-pgAdmin-RCE",
      "created_at": "2026-08-26T11:58:02Z",
      "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": "2021-12-25T20:35:54Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "pgadmin.org",
        "product": "pgAdmin 4",
        "ranges": [
          "\u003c 9.2"
        ],
        "fixed_in": [
          "9.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pgAdmin 4 to 9.2 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_query_tool_authenticated.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: pgAdmin Query Tool authenticated RCE (CVE-2025-2945) (exploit/multi/http/pgadmin_query_tool_authenticated)",
      "published_at": "2025-04-10T00:32:10Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
