{
  "id": "CVE-2023-27997",
  "url": "https://poc.griffinguard.io/cve/CVE-2023-27997",
  "published_at": "2023-06-13T08:41:47.415Z",
  "title": "Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability",
  "vendor": "Fortinet",
  "product": "FortiOS-6K7K",
  "cvss": {
    "score": 9.2,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:X/RC:R"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2023-06-13",
    "known_ransomware_campaign_use": "Known",
    "days_after_publication": 0
  },
  "first_poc": {
    "created_at": "2023-06-16T03:25:19Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 2.8,
    "repo": "rio128128/CVE-2023-27997-POC",
    "source": "github"
  },
  "poc_repo_count": 8,
  "exploit_count": 0,
  "suspicious_repo_count": 1,
  "edge_device": {
    "category": "Firewall / VPN",
    "confidence": "high",
    "reason": "known edge product: Fortinet FortiOS-6K7K Fortinet FortiOS and FortiProxy SSL-VPN"
  },
  "description": "A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, version 6.4.12 and below, version 6.0.16 and below and FortiProxy version 7.2.3 and below, version 7.0.9 and below, version 2.0.12 and below, version 1.2 all versions, version 1.1 all versions SSL-VPN may allow a remote attacker to execute arbitrary code or commands via specifically crafted requests.",
  "cwe": "CWE-122",
  "cvss_by_source": {
    "cna": 9.2
  },
  "repos": [
    {
      "repo": "Aicks/FortiGate-CVE-2023-27997",
      "url": "https://github.com/Aicks/FortiGate-CVE-2023-27997",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "Pik-sec/cve-2023-27997",
      "url": "https://github.com/Pik-sec/cve-2023-27997",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "awchjimmy/CVE-2023-27997-tutorial",
      "url": "https://github.com/awchjimmy/CVE-2023-27997-tutorial",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "gysf666/CVE-2023-27997-test",
      "url": "https://github.com/gysf666/CVE-2023-27997-test",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "hheeyywweellccoommee/CVE-2023-27997-POC-FortiOS-SSL-VPN-buffer-overflow-vulnerability-ssijz",
      "url": "https://github.com/hheeyywweellccoommee/CVE-2023-27997-POC-FortiOS-SSL-VPN-buffer-overflow-vulnerability-ssijz",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "hheeyywweellccoommee/CVE-2023-27997-test-nleyl",
      "url": "https://github.com/hheeyywweellccoommee/CVE-2023-27997-test-nleyl",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "m474r5/CVE-2023-27997-POC",
      "url": "https://github.com/m474r5/CVE-2023-27997-POC",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "m474r5/CVE-2023-27997-findings",
      "url": "https://github.com/m474r5/CVE-2023-27997-findings",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "rio128128/CVE-2023-27997-POC",
      "url": "https://github.com/rio128128/CVE-2023-27997-POC",
      "created_at": "2023-06-16T03:25:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 27,
      "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": "2023-06-16T03:12:54Z"
    },
    {
      "repo": "BishopFox/CVE-2023-27997-check",
      "url": "https://github.com/BishopFox/CVE-2023-27997-check",
      "created_at": "2023-06-16T20:15:36Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 134,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-05-25T00:52:55Z"
    },
    {
      "repo": "imbas007/CVE-2023-27997-Check",
      "url": "https://github.com/imbas007/CVE-2023-27997-Check",
      "created_at": "2023-06-22T14:16:44Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-02-22T04:38:44Z"
    },
    {
      "repo": "puckiestyle/cve-2023-27997",
      "url": "https://github.com/puckiestyle/cve-2023-27997",
      "created_at": "2023-06-23T15:15:54Z",
      "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": "2019-11-06T13:55:21Z"
    },
    {
      "repo": "TechinsightsPro/ShodanFortiOS",
      "url": "https://github.com/TechinsightsPro/ShodanFortiOS",
      "created_at": "2023-07-11T20:41:03Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2022-10-18T21:53:54Z"
    },
    {
      "repo": "Cyb3rEnthusiast/CVE-2023-27997",
      "url": "https://github.com/Cyb3rEnthusiast/CVE-2023-27997",
      "created_at": "2023-09-03T10:01:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2023-09-03T09:43:29Z"
    },
    {
      "repo": "lexfo/xortigate-cve-2023-27997",
      "url": "https://github.com/lexfo/xortigate-cve-2023-27997",
      "created_at": "2023-10-12T16:12:41Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 63,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-11-23T13:34:42Z"
    },
    {
      "repo": "delsploit/CVE-2023-27997",
      "url": "https://github.com/delsploit/CVE-2023-27997",
      "created_at": "2023-10-12T17:50:38Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 9,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-03-06T12:23:34Z"
    },
    {
      "repo": "h4x0r-dz/CVE-2024-21762",
      "url": "https://github.com/h4x0r-dz/CVE-2024-21762",
      "created_at": "2024-03-13T09:17:28Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 150,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-02-27T19:33:37Z"
    },
    {
      "repo": "node011/CVE-2023-27997-POC",
      "url": "https://github.com/node011/CVE-2023-27997-POC",
      "created_at": "2024-11-14T14:41:20Z",
      "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-02-02T10:50:18Z"
    },
    {
      "repo": "onurkerembozkurt/fgt-cve-2023-27997-exploit",
      "url": "https://github.com/onurkerembozkurt/fgt-cve-2023-27997-exploit",
      "created_at": "2025-04-18T17:49:50Z",
      "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": "2020-08-20T06:06:39Z"
    },
    {
      "repo": "Vampsecure-Labs/vamp-forticheck",
      "url": "https://github.com/Vampsecure-Labs/vamp-forticheck",
      "created_at": "2026-07-31T10:13:19Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 80,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in .github/workflows/security-scan.yml",
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-08-03T07:49:04Z"
    },
    {
      "repo": "abraxas/Fortigate-SSL-VPN-Exploit-Kit",
      "url": "https://github.com/abraxas/Fortigate-SSL-VPN-Exploit-Kit",
      "created_at": "2026-09-01T20:04:23Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-07-04T21:33:07Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/remote/hostcheck_validate",
      "body_markers": [
        "redir=a",
        "enc="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        10443
      ],
      "protocol": "https",
      "repos": [
        "BishopFox/CVE-2023-27997-check",
        "delsploit/CVE-2023-27997",
        "imbas007/CVE-2023-27997-Check",
        "node011/CVE-2023-27997-POC"
      ],
      "repo_count": 4,
      "confidence": 0.7,
      "evidence": [
        "BishopFox/CVE-2023-27997-check/CVE-2023-27997-check.py:25",
        "delsploit/CVE-2023-27997/exploit.py:133",
        "imbas007/CVE-2023-27997-Check/CVE-2023-27997.py:31",
        "node011/CVE-2023-27997-POC/exp.py:133"
      ]
    },
    {
      "method": "GET",
      "path_template": "/remote/hostcheck_validate",
      "query_markers": [
        "enc="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
      ],
      "protocol": "https",
      "repos": [
        "delsploit/CVE-2023-27997",
        "node011/CVE-2023-27997-POC",
        "onurkerembozkurt/fgt-cve-2023-27997-exploit"
      ],
      "repo_count": 3,
      "confidence": 0.7,
      "evidence": [
        "delsploit/CVE-2023-27997/exploit.py:160",
        "node011/CVE-2023-27997-POC/exp.py:160",
        "onurkerembozkurt/fgt-cve-2023-27997-exploit/fgt-cve-2023-27997-exploit.py:84"
      ]
    },
    {
      "method": "GET",
      "path_template": "/remote/info",
      "ports": [
        10443
      ],
      "protocol": "https",
      "repos": [
        "BishopFox/CVE-2023-27997-check",
        "imbas007/CVE-2023-27997-Check",
        "onurkerembozkurt/fgt-cve-2023-27997-exploit"
      ],
      "repo_count": 3,
      "confidence": 0.7,
      "evidence": [
        "BishopFox/CVE-2023-27997-check/CVE-2023-27997-check.py:48",
        "imbas007/CVE-2023-27997-Check/CVE-2023-27997.py:54",
        "onurkerembozkurt/fgt-cve-2023-27997-exploit/fgt-cve-2023-27997-exploit.py:36"
      ]
    },
    {
      "method": "POST",
      "path_template": "/remote/logincheck",
      "body_markers": [
        "ajax=1",
        "username=asdf",
        "realm=",
        "enc=000000247255fc38"
      ],
      "protocol": "https",
      "repos": [
        "puckiestyle/cve-2023-27997"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "puckiestyle/cve-2023-27997/cve-2023-27997.py:11"
      ]
    }
  ],
  "rules": []
}
