{
  "id": "CVE-2025-66039",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-66039",
  "published_at": "2025-12-09T21:32:03.412Z",
  "title": "FreePBX Endpoint Manager Allows Unauthenticated Logins to Administrator Control Panel via Forged Basic Auth Header",
  "vendor": "FreePBX",
  "product": "framework",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/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-12-14T07:57:17Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 4.4,
    "repo": "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX",
    "source": "github"
  },
  "poc_repo_count": 3,
  "exploit_count": 3,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "FreePBX Endpoint Manager is a module for managing telephony endpoints in FreePBX systems. Versions are vulnerable to authentication bypass when the authentication type is set to \"webserver.\" When providing an Authorization header with an arbitrary value, a session is associated with the target user regardless of valid credentials. This issue is fixed in versions 16.0.44 and 17.0.23.",
  "cwe": "CWE-287",
  "cpes": [
    "cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX",
      "url": "https://github.com/BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX",
      "created_at": "2025-12-14T07:57:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "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": "2025-12-14T05:50:06Z"
    },
    {
      "repo": "rxerium/FreePBX-Vulns-December-25",
      "url": "https://github.com/rxerium/FreePBX-Vulns-December-25",
      "created_at": "2025-12-15T20:51:34Z",
      "first_seen_at": "2026-11-15T01:04:29.813Z",
      "stars": 47,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2019-12-27T18:58:42Z"
    },
    {
      "repo": "cyberleelawat/FreePBX-Multiple-CVEs-2025",
      "url": "https://github.com/cyberleelawat/FreePBX-Multiple-CVEs-2025",
      "created_at": "2025-12-16T06:03:49Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "code never talks to a target"
      ],
      "status": "analyzed",
      "owner_created_at": "2025-03-09T06:09:21Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "FreePBX",
        "product": "framework",
        "ranges": [
          "\u003c 16.0.44",
          "\u003e= 17.0.1, \u003c 17.0.23"
        ],
        "fixed_in": [
          "16.0.44",
          "17.0.23"
        ]
      }
    ],
    "upgrade": [
      "Upgrade framework to 16.0.44 or 17.0.23 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/FreePBX/security-reporting/security/advisories/GHSA-9jvh-mv6x-w698"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/FreePBX/framework/commit/04224253156543cd9932b90458660b2f19fc0e35#diff-72f14a52840a61504a8e03cd195035b44e488aecd634b001bc6412a04bdc940bR20-R50"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/freepbx_custom_extension_injection.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: FreePBX Custom Extension SQL Injection (auxiliary/gather/freepbx_custom_extension_injection)",
      "published_at": "2026-01-15T14:20:38Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/freepbx_custom_extension_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: FreePBX endpoint SQLi to RCE (exploit/unix/http/freepbx_custom_extension_rce)",
      "published_at": "2026-01-09T10:15:47Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/freepbx_firmware_file_upload.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: FreePBX firmware file upload (exploit/unix/http/freepbx_firmware_file_upload)",
      "published_at": "2026-01-09T10:19:37Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/admin/config.php#",
      "protocol": "https",
      "repos": [
        "cyberleelawat/FreePBX-Multiple-CVEs-2025",
        "rxerium/FreePBX-Vulns-December-25"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "cyberleelawat/FreePBX-Multiple-CVEs-2025/CVE-2025-61675.yaml:26",
        "cyberleelawat/FreePBX-Multiple-CVEs-2025/CVE-2025-61678.yaml:26",
        "cyberleelawat/FreePBX-Multiple-CVEs-2025/CVE-2025-66039.yaml:26",
        "rxerium/FreePBX-Vulns-December-25/CVE-2025-61675.yaml:26",
        "rxerium/FreePBX-Vulns-December-25/CVE-2025-61678.yaml:26",
        "rxerium/FreePBX-Vulns-December-25/CVE-2025-66039.yaml:26"
      ]
    },
    {
      "method": "GET",
      "path_template": "/admin/config.php",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic YWRtaW46YWRtaW4="
        },
        {
          "name": "Referer",
          "value": "{var}/admin/config.php"
        }
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
      ],
      "protocol": "http",
      "repos": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX/exploit.py:127"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic YWRtaW46YWRtaW4="
        },
        {
          "name": "Referer",
          "value": "{var}/admin/config.php"
        }
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
      ],
      "protocol": "http",
      "repos": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX/exploit.py:266"
      ]
    },
    {
      "method": "POST",
      "path_template": "/admin/config.php",
      "headers": [
        {
          "name": "Authorization",
          "value": "Basic YWRtaW46YWRtaW4="
        },
        {
          "name": "Referer",
          "value": "{var}/admin/config.php"
        }
      ],
      "body_markers": [
        "id="
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
      ],
      "protocol": "http",
      "repos": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX/exploit.py:236",
        "BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX/exploit.py:442"
      ]
    }
  ],
  "rules": []
}
