{
  "id": "CVE-2021-40870",
  "url": "https://poc.griffinguard.io/cve/CVE-2021-40870",
  "published_at": "2021-09-13T07:41:55Z",
  "title": "Aviatrix Controller Unrestricted Upload of File",
  "vendor": "Aviatrix",
  "product": "Aviatrix Controller",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-01-18",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 127
  },
  "first_poc": {
    "created_at": "2021-10-07T08:53:19Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 24,
    "repo": "System00-Security/CVE-2021-40870",
    "source": "github"
  },
  "poc_repo_count": 6,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "An issue was discovered in Aviatrix Controller 6.x before 6.5-1804.1922. Unrestricted upload of a file with a dangerous type is possible, which allows an unauthenticated user to execute arbitrary code via directory traversal.",
  "cwe": "CWE-noinfo",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "System00-Security/CVE-2021-40870",
      "url": "https://github.com/System00-Security/CVE-2021-40870",
      "created_at": "2021-10-07T08:53:19Z",
      "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-03-30T09:41:45Z"
    },
    {
      "repo": "0xAgun/CVE-2021-40870",
      "url": "https://github.com/0xAgun/CVE-2021-40870",
      "created_at": "2021-10-07T17:19:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 15,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-01-29T18:14:01Z"
    },
    {
      "repo": "byteofandri/CVE-2021-40870",
      "url": "https://github.com/byteofandri/CVE-2021-40870",
      "created_at": "2021-10-07T21:34:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-10-03T18:28:44Z"
    },
    {
      "repo": "byteofjoshua/CVE-2021-40870",
      "url": "https://github.com/byteofjoshua/CVE-2021-40870",
      "created_at": "2021-10-07T21:34:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-10-03T18:28:44Z"
    },
    {
      "repo": "orangmuda/CVE-2021-40870",
      "url": "https://github.com/orangmuda/CVE-2021-40870",
      "created_at": "2021-10-07T21:34:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-10-03T18:28:44Z"
    },
    {
      "repo": "JoyGhoshs/CVE-2021-40870",
      "url": "https://github.com/JoyGhoshs/CVE-2021-40870",
      "created_at": "2021-10-08T05:35:40Z",
      "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": "2018-02-08T05:21:47Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40870.yaml",
      "source": "nuclei",
      "title": "nuclei template: Aviatrix Controller 6.x before 6.5-1804.1922 - Remote Command Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/v1/backend1",
      "body_markers": [
        "CID=x",
        "action=set_metric_gw_selections",
        "account_name=/../../../var/www/php/",
        "data=poc by agun",
        "data="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
      ],
      "protocol": "https",
      "repos": [
        "0xAgun/CVE-2021-40870",
        "JoyGhoshs/CVE-2021-40870",
        "System00-Security/CVE-2021-40870",
        "byteofandri/CVE-2021-40870",
        "byteofjoshua/CVE-2021-40870",
        "orangmuda/CVE-2021-40870"
      ],
      "repo_count": 6,
      "confidence": 0.7,
      "evidence": [
        "0xAgun/CVE-2021-40870/poc.py:47",
        "JoyGhoshs/CVE-2021-40870/CVE-2021-40870.py:33",
        "System00-Security/CVE-2021-40870/CVE-2021-40870.py:33",
        "byteofandri/CVE-2021-40870/exploit.py:33",
        "byteofjoshua/CVE-2021-40870/exploit.py:33",
        "orangmuda/CVE-2021-40870/exploit.py:33"
      ]
    },
    {
      "method": "GET",
      "path_template": "/v1/{var}",
      "protocol": "http",
      "repos": [
        "JoyGhoshs/CVE-2021-40870",
        "System00-Security/CVE-2021-40870",
        "byteofandri/CVE-2021-40870",
        "byteofjoshua/CVE-2021-40870",
        "orangmuda/CVE-2021-40870"
      ],
      "repo_count": 5,
      "confidence": 0.7,
      "evidence": [
        "JoyGhoshs/CVE-2021-40870/CVE-2021-40870.py:34",
        "System00-Security/CVE-2021-40870/CVE-2021-40870.py:34",
        "byteofandri/CVE-2021-40870/exploit.py:34",
        "byteofjoshua/CVE-2021-40870/exploit.py:34",
        "orangmuda/CVE-2021-40870/exploit.py:34"
      ]
    },
    {
      "method": "GET",
      "path_template": "/v1/RCE.php",
      "protocol": "https",
      "repos": [
        "0xAgun/CVE-2021-40870"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "0xAgun/CVE-2021-40870/poc.py:49"
      ]
    }
  ],
  "rules": []
}
