{
  "id": "CVE-2025-60787",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-60787",
  "published_at": "2025-10-03T00:00:00Z",
  "cvss": {
    "score": 7.2,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/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-10-09T17:51:31Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 6.7,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb"
  },
  "poc_repo_count": 7,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "MotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image_file_name. Unsanitized user input is written to Motion configuration files, allowing remote authenticated attackers with admin access to achieve code execution when Motion is restarted.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:motioneye_project:motioneye:0.42.1:*:*:*:*:*:*:*",
    "cpe:2.3:a:motioneye_project:motioneye:0.43.1:beta1:*:*:*:*:*:*",
    "cpe:2.3:a:motioneye_project:motioneye:0.43.1:beta2:*:*:*:*:*:*",
    "cpe:2.3:a:motioneye_project:motioneye:0.43.1:beta3:*:*:*:*:*:*",
    "cpe:2.3:a:motioneye_project:motioneye:0.43.1:beta4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.2
  },
  "repos": [
    {
      "repo": "prabhatverma47/CVE-2025-60787",
      "url": "https://github.com/prabhatverma47/CVE-2025-60787",
      "created_at": "2025-10-03T15:20:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-12-22T13:46:16Z"
    },
    {
      "repo": "GarethMSheldon/CVE-2025-60787-Detection-motionEye-RCE-via-Config-Injection",
      "url": "https://github.com/GarethMSheldon/CVE-2025-60787-Detection-motionEye-RCE-via-Config-Injection",
      "created_at": "2026-02-28T20:59:46Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-01-15T08:45:55Z"
    },
    {
      "repo": "Rohitberiwala/CVE-2025-60787-MotionEye-RCE",
      "url": "https://github.com/Rohitberiwala/CVE-2025-60787-MotionEye-RCE",
      "created_at": "2026-03-07T08:45:30Z",
      "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": "2024-06-01T10:09:23Z"
    },
    {
      "repo": "gunzf0x/CVE-2025-60787",
      "url": "https://github.com/gunzf0x/CVE-2025-60787",
      "created_at": "2026-03-08T01:47:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 10,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-09-12T03:03:56Z"
    },
    {
      "repo": "lil0xplorer/CVE-2025-60787_PoC",
      "url": "https://github.com/lil0xplorer/CVE-2025-60787_PoC",
      "created_at": "2026-03-08T04:01:24Z",
      "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": "2021-09-12T12:32:00Z"
    },
    {
      "repo": "d3vn0mi/CVE-2025-60787-POC",
      "url": "https://github.com/d3vn0mi/CVE-2025-60787-POC",
      "created_at": "2026-03-13T17:59: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": "2017-03-28T20:24:14Z"
    },
    {
      "repo": "agent-skywalker/CVE-2025-60787",
      "url": "https://github.com/agent-skywalker/CVE-2025-60787",
      "created_at": "2026-03-14T11:16:49Z",
      "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": "2017-07-13T18:17:48Z"
    },
    {
      "repo": "ozcanpng/CVE-2025-60787",
      "url": "https://github.com/ozcanpng/CVE-2025-60787",
      "created_at": "2026-07-10T17:40:14Z",
      "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": "2023-03-11T19:43:38Z"
    },
    {
      "repo": "diamorphine666/CVE-2025-60787",
      "url": "https://github.com/diamorphine666/CVE-2025-60787",
      "created_at": "2026-10-03T22:32:40Z",
      "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": "2022-12-19T18:48:28Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "motioneye",
        "ranges": [
          "\u003c 0.43.1b5"
        ],
        "fixed_in": [
          "0.43.1b5"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-j945-qm58-4gjx"
      }
    ],
    "upgrade": [
      "Upgrade motioneye to 0.43.1b5 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52481",
      "source": "exploitdb",
      "title": "motionEye 0.43.1b4 - RCE",
      "published_at": "2026-02-11T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Remote Code Execution Vulnerability in MotionEye Frontend (CVE-2025-60787) (exploit/linux/http/motioneye_auth_rce_cve_2025_60787)",
      "published_at": "2025-10-09T17:51:31Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/static{var}",
      "protocol": "http",
      "repos": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE/exploit.py:125"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}/action/snapshot",
      "ports": [
        4444,
        7999,
        8765
      ],
      "protocol": "http",
      "repos": [
        "agent-skywalker/CVE-2025-60787"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "agent-skywalker/CVE-2025-60787/CVE-2025-60787.py:218"
      ]
    },
    {
      "method": "POST",
      "path_template": "/config/1/set",
      "body_markers": [
        "picture_filename=$("
      ],
      "content_type": "application/x-www-form-urlencoded",
      "protocol": "http",
      "repos": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE/exploit.py:111",
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE/exploit.py:149"
      ]
    },
    {
      "method": "POST",
      "path_template": "/login",
      "body_markers": [
        "username=",
        "password="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "protocol": "http",
      "repos": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Rohitberiwala/CVE-2025-60787-MotionEye-RCE/exploit.py:81"
      ]
    },
    {
      "method": "POST",
      "path_template": "/{var}/action/snapshot",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en-US,en;q=0.9"
        },
        {
          "name": "Origin",
          "value": "http://127.0.0.1:8765\"    # Full URL to the motionEye web interface"
        },
        {
          "name": "Referer",
          "value": "{var}/"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "content_type": "application/json",
      "ports": [
        4444,
        7999,
        8765
      ],
      "user_agents": [
        "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "agent-skywalker/CVE-2025-60787"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "agent-skywalker/CVE-2025-60787/CVE-2025-60787.py:203"
      ]
    }
  ],
  "rules": []
}
