{
  "id": "CVE-2025-13780",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-13780",
  "published_at": "2025-12-11T18:30:47.812Z",
  "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.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-12T09:29:23Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 0.6,
    "repo": "meenakshisl/PoC-CVE-2025-13780",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "pgAdmin versions up to 9.10 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": 8.8
  },
  "repos": [
    {
      "repo": "zeropwn/pgadmin4-9.10-CVE-2025-13780",
      "url": "https://github.com/zeropwn/pgadmin4-9.10-CVE-2025-13780",
      "created_at": "2025-12-12T00:01:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 14,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-11-24T03:51:26Z"
    },
    {
      "repo": "meenakshisl/PoC-CVE-2025-13780",
      "url": "https://github.com/meenakshisl/PoC-CVE-2025-13780",
      "created_at": "2025-12-12T09:29:23Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-09-10T18:50:54Z"
    },
    {
      "repo": "ThemeHackers/CVE-2025-13780",
      "url": "https://github.com/ThemeHackers/CVE-2025-13780",
      "created_at": "2025-12-17T03:59:29Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2022-06-07T12:41:21Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "pgadmin.org",
        "product": "pgAdmin 4",
        "ranges": [
          "\u003c= 9.10"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "pgadmin4",
        "ranges": [
          "\u003c 9.11"
        ],
        "fixed_in": [
          "9.11"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-fxmw-jcgr-w44v"
      }
    ],
    "upgrade": [
      "Upgrade pgadmin4 to 9.11 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/authenticate/login",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        },
        {
          "name": "Referer",
          "value": "{var}/login?next=/"
        }
      ],
      "body_markers": [
        "email=",
        "password=",
        "csrf_token=",
        "email=exploit@example.com",
        "password=ExploitPass!23"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780",
        "meenakshisl/PoC-CVE-2025-13780"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:435",
        "meenakshisl/PoC-CVE-2025-13780/scripts/ui_restore_exploit.py:38"
      ]
    },
    {
      "method": "GET",
      "path_template": "/browser/",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:366",
        "ThemeHackers/CVE-2025-13780/scanner.py:446"
      ]
    },
    {
      "method": "GET",
      "path_template": "/browser/database/nodes/{var}/",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:1123"
      ]
    },
    {
      "method": "GET",
      "path_template": "/browser/server/nodes/{var}/",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:1095"
      ]
    },
    {
      "method": "GET",
      "path_template": "/browser/server_group/nodes/",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:758",
        "ThemeHackers/CVE-2025-13780/scanner.py:1073"
      ]
    },
    {
      "method": "GET",
      "path_template": "/login",
      "query_markers": [
        "next=/"
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "meenakshisl/PoC-CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "meenakshisl/PoC-CVE-2025-13780/scripts/ui_restore_exploit.py:23"
      ]
    },
    {
      "method": "GET",
      "path_template": "/misc/ping",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:343"
      ]
    },
    {
      "method": "GET",
      "path_template": "/preferences/get_all",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:241"
      ]
    },
    {
      "method": "POST",
      "path_template": "/browser/server/connect/{var}/{var}",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/browser/"
        },
        {
          "name": "X-Pga-Csrftoken",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "email=exploit@example.com",
        "password=ExploitPass!23",
        "csrf_token="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "meenakshisl/PoC-CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "meenakshisl/PoC-CVE-2025-13780/scripts/ui_restore_exploit.py:53"
      ]
    },
    {
      "method": "POST",
      "path_template": "/browser/server/obj/{var}/",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "body_markers": [
        "\"name\"",
        "\"host\":\"db\"",
        "\"port\"",
        "\"username\":\"user\"",
        "\"password\":\"password\"",
        "\"db\":\"cve2025-13780\"",
        "\"sslmode\":\"prefer\"",
        "\"comment\":\"Auto-generated by scanner\"",
        "\"gid\""
      ],
      "content_type": "application/json",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:784"
      ]
    },
    {
      "method": "POST",
      "path_template": "/preferences/save",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "body_markers": [
        "mid=",
        "pg_bin_paths="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "ThemeHackers/CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ThemeHackers/CVE-2025-13780/scanner.py:296"
      ]
    },
    {
      "method": "POST",
      "path_template": "/restore/job/{var}",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/browser/"
        },
        {
          "name": "X-Pga-Csrftoken",
          "value": "{var}"
        }
      ],
      "ports": [
        5050
      ],
      "protocol": "http",
      "repos": [
        "meenakshisl/PoC-CVE-2025-13780"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "meenakshisl/PoC-CVE-2025-13780/scripts/ui_restore_exploit.py:74"
      ]
    }
  ],
  "rules": []
}
