{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66039 exists.","fix":"No fix has been published for CVE-2025-66039 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-66039 is a critical authentication bypass vulnerability in Sangoma Freepbx, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66039 and fix it if it is affected.\n\nWhat it is: CVE-2025-66039 is a critical authentication bypass vulnerability in Sangoma Freepbx, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66039 exists.\n\nAffected product: Sangoma Freepbx. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66039/ (Markdown: https://insights.sbomify.com/CVE-2025-66039/index.md)","id":"CVE-2025-66039","markdown":"https://insights.sbomify.com/CVE-2025-66039/index.md","name":"CVE-2025-66039","record":{"aliases":["GHSA-9jvh-mv6x-w698"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"FreePBX Endpoint Manager","requires_auth":"none","summary":"Attackers can bypass authentication and gain administrator access to the FreePBX Endpoint Manager control panel by forging a Basic Auth header when webserver authentication is enabled.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"freepbx","vendor":"sangoma"}],"cvss":{"score":9.3,"severity":"critical","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","version":"4.0"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-12-11","github_poc":2,"max_poc_stars":1,"metasploit":3,"nuclei":0,"refs":[{"date":"2025-12-14T07:57:17Z","kind":"github_poc","ref":"https://github.com/BimBoxH4/CVE-2025-66039_CVE-2025-61675_CVE-2025-61678_reePBX","stars":1,"title":"This vulnerability allows both authenticated and unauthenticated remote attackers to execute remote code on vulnerable FreePBX instances. These issues have been fixed in FreePBX versions 16.0.42, 16.0.92, 17.0.6, and 17.0.22. It's important to note that this authentication bypass vulnerability is not present in the default FreePBX configuration."},{"date":"2025-12-16T06:03:49Z","kind":"github_poc","ref":"https://github.com/cyberleelawat/FreePBX-Multiple-CVEs-2025","stars":1,"title":"This repository documents three security vulnerabilities discovered in FreePBX (CVE-2025-66039, CVE-2025-61678, CVE-2025-61675), including analysis, impact, and proof-of-concept details for security research and awareness purposes."},{"date":"2025-12-11","kind":"metasploit","ref":"auxiliary/gather/freepbx_custom_extension_injection","stars":null,"title":"FreePBX Custom Extension SQL Injection"},{"date":"2025-12-11","kind":"metasploit","ref":"exploit/unix/http/freepbx_custom_extension_rce","stars":null,"title":"FreePBX endpoint SQLi to RCE"},{"date":"2025-12-11","kind":"metasploit","ref":"exploit/unix/http/freepbx_firmware_file_upload","stars":null,"title":"FreePBX firmware file upload"}],"tier":"weaponised"},"has_fix":false,"headline":"FreePBX Endpoint Manager Allows Unauthenticated Logins to Administrator Control Panel via Forged Basic Auth Header","id":"CVE-2025-66039","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"sangoma:freepbx","products":["sangoma:freepbx"],"type":"auth_bypass","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"Spotipy has a XSS vulnerability in OAuth callback server","id":"CVE-2025-66040"},"packages":[],"prev":{"headline":"OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers","id":"CVE-2025-66038"},"products":["framework"],"published":"2025-12-09","related":[{"cvss_score":10,"headline":"Sangoma FreePBX Authentication Bypass","id":"CVE-2025-57819","kev_date_added":"2025-08-29","published":"2025-08-28"},{"cvss_score":9.8,"headline":"Sangoma FreePBX Improper Authentication","id":"CVE-2019-19006","kev_date_added":"2026-02-03","published":"2019-11-21"},{"cvss_score":9.3,"headline":"FreePBX: Unauthenticated SQL injection in FreePBX missedcall via inbound Caller ID name leads to administrator takeover","id":"CVE-2026-73663","kev_date_added":null,"published":"2026-08-13"},{"cvss_score":9.3,"headline":"FreePBX UCP: Unauthenticated remote code execution via socket.io namespace auth bypass and AMI action injection","id":"CVE-2026-73665","kev_date_added":null,"published":"2026-08-13"},{"cvss_score":9.3,"headline":"FreePBX: Unauthenticated Use of Hard-Coded Credentials Vulnerability in FreePBX UCP Interface","id":"CVE-2026-46376","kev_date_added":null,"published":"2026-05-29"},{"cvss_score":8.8,"headline":"Missing authorization in n/a","id":"CVE-2023-43336","kev_date_added":null,"published":"2023-11-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["FreePBX"]},"summary":"Attackers can bypass authentication and gain administrator access to the FreePBX Endpoint Manager control panel by forging a Basic Auth header when webserver authentication is enabled.","url":"https://insights.sbomify.com/CVE-2025-66039/"}