{
  "id": "CVE-2025-67722",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-67722",
  "published_at": "2025-12-16T00:14:18.746Z",
  "title": "Authenticated amportal search for ‘freepbx_engine’ in non root writeable directories leads to potential privilege escalation",
  "vendor": "FreePBX",
  "product": "framework",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. Prior to versions 16.0.45 and 17.0.24 of the FreePBX framework, an authenticated local privilege escalation exists in the deprecated FreePBX startup script `amportal`. In the deprecated `amportal` utility, the lookup for the `freepbx_engine` file occurs in `/etc/asterisk/` directories. Typically, these are configured by FreePBX as writable by the **asterisk** user and any members of the **asterisk** group. This means that a member of the **asterisk** group can add their own `freepbx_engine` file in `/etc/asterisk/` and upon `amportal` executing, it would exec that file with root permissions (even though the file was created and placed by a non-root user). Version 16.0.45 and 17.0.24 contain a fix for the issue. Other mitigation strategies are also available. Confirm only trusted local OS system users are members of the `asterisk` group. Look for suspicious files in the `/etc/asterisk/` directory (via Admin -\u003e Config Edit in the GUI, or via CLI). Double-check that `live_dangerously = no` is set (or unconfigured, as the default is **no**) in `/etc/asterisk/asterisk.conf` file. Eliminate any unsafe custom use of Asterisk dial plan applications and functions that potentially can manipulate the file system, e.g., System(), FILE(), etc.",
  "cwe": "CWE-426",
  "cpes": [
    "cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.7,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "FreePBX",
        "product": "framework",
        "ranges": [
          "\u003c 16.0.45",
          "\u003e= 17.0.0, \u003c 17.0.24"
        ],
        "fixed_in": [
          "16.0.45",
          "17.0.24"
        ]
      }
    ],
    "upgrade": [
      "Upgrade framework to 16.0.45 or 17.0.24 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/FreePBX/security-reporting/security/advisories/GHSA-p42w-v77m-hfp8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
