
Read-only source audit that inspects a local FreeSWITCH checkout for CVE-2026-116779 mod_sofia chat api-proto command injection signatures and reports VULNERABLE, NOT_VULNERABLE, or INCONCLUSIVE.
Read-only local source and bundled-profile audit for the FreeSWITCH inbound SIP MESSAGE issue CVE-2026-116779. The tool evaluates a local FreeSWITCH source checkout; it does not send SIP messages, exploit a service, or scan a network.
mod_sofia<= 1.11.2)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HMESSAGE To-user selector can choose the api chat protocol. mod_dptools registers that protocol to call switch_api_execute(), allowing API command execution as the FreeSWITCH process.The vendor says any SIP profile accepting inbound MESSAGE is affected by default. enable-chat=false blocks chat handling but disables all inbound MESSAGE chat delivery. Authentication alone is not a complete fix. The official patch adds the per-profile enable-chat-api-proto gate, disabled by default; fixed builds return 403 for a selected api proto unless explicitly enabled.
The detector reads only these source files under the supplied checkout:
src/mod/endpoints/mod_sofia/sofia_presence.csrc/mod/endpoints/mod_sofia/sofia.csrc/mod/endpoints/mod_sofia/mod_sofia.hIt reports VULNERABLE only when it finds the inbound proto selection marker and api chat dispatch marker without the upstream gate marker. It reports NOT_VULNERABLE when the inbound api branch contains the upstream PFLAG_ENABLE_CHAT_API_PROTO check. If neither signature is conclusive, it reports INCONCLUSIVE. Explicit enable-chat-api-proto=true entries in bundled XML profiles are surfaced for review; they do not negate the fact that the source includes the patch.
This signature-based check is deliberately narrow. It does not infer source patch status from port state, banners, or version strings. It cannot identify altered downstream backports that do not retain the upstream markers. It assesses the supplied source tree, not a compiled or running deployment. A result of NOT_VULNERABLE does not mean the system is otherwise secure.
Python 3.11 or newer. Runtime uses the standard library; pytest, ruff, and mypy are development tools.
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
python -m pip install -e .
--target must be a local FreeSWITCH source checkout directory, not a remote host or configuration-only directory.
python -m cve_detector --target "C:\src\freeswitch"
python -m cve_detector --target /src/freeswitch --format json --output report.json
Options: --target (required), --format text|json (default text), --output FILE, --verbose, --quiet, --version, and --help. The tool is offline and read-only. --timeout, retries, authentication, and active checks are not applicable and are not provided.
JSON contains cve, target, status, evidence_summary, verification_method, confidence, observations, limitations, timestamp (UTC ISO 8601), and references.
| Exit code | Status |
|---|---|
| 0 | NOT_VULNERABLE |
| 1 | VULNERABLE |
| 2 | INCONCLUSIVE |
| 3 | ERROR |
Example output below is illustrative, not from an actual FreeSWITCH system:
{
"cve": "CVE-2026-116779",
"target": "C:/src/freeswitch",
"status": "INCONCLUSIVE",
"evidence_summary": "The source files were found, but their implementation does not match a reliable vulnerable or fixed signature.",
"verification_method": "Read-only inspection of FreeSWITCH mod_sofia source and bundled XML profiles",
"confidence": "Low; source evidence is incomplete or modified.",
"observations": [],
"limitations": [],
"timestamp": "2026-11-15T00:00:00+00:00",
"references": []
}
Illustrative status lines for the four classifications:
CVE-2026-116779: VULNERABLE # unguarded selector plus bundled mod_dptools source
CVE-2026-116779: NOT_VULNERABLE # upstream per-profile gate found
CVE-2026-116779: INCONCLUSIVE # signature incomplete or target layout unsupported
CVE-2026-116779: ERROR # invalid target or local file access failed
These are examples of possible outputs, not test-run results.
python -m pip install pytest ruff mypy
python -m pytest
ruff check .
ruff format --check .
mypy src
Tests use temporary local fixtures and do not contact live targets. CI runs these checks on Python 3.11 and 3.12. Dependency auditing is run with pip-audit.
The process exit codes can gate a workflow. Treat exit code 2 as a request for manual review; do not equate it with a clean result. Only scan source trees your organization is authorized to inspect.
api-proto SIP message would be an unsafe verification mechanism.Use only on source trees you are authorized to assess. The tool does not execute target code and makes no network requests.
Please include deterministic tests and authoritative references for any new detection signature. Do not add exploit payloads or checks that execute commands on a target.
MIT; see LICENSE.