CVE-2017-17850
High · 7.5CVSS
7.5
EPSS
75.4%
Published
Dec 27, 2017
CISA due date
—
Cloudanix analysis
A missing piece of information in certain network messages can make phone systems using Asterisk stop working until they are restarted.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing Contact header in select SIP messages that create dialogs causes a null dereference and crash in the PJSIP channel driver due to improper input validation.
Why it matters to the business
Remote attackers can trigger denial-of-service outages against VoIP or PBX services, interrupting voice communications until the process is restarted; high EPSS indicates substantial real-world exploit likelihood.
How an attack unfolds
An unauthenticated attacker sends a minimal SIP request (OPTIONS, SUBSCRIBE, etc.) lacking a Contact header to a PJSIP-configured Asterisk instance; the message creates a dialog, the missing header is not validated, and the driver crashes.
How to fix it
Upgrade Asterisk to versions newer than 13.18.4, 14.7.4, or 15.1.4 (or the corresponding certified branch) and restart the service; enable authentication where possible as a compensating control.
How to confirm the fix worked
Confirm the running Asterisk version is newer than the vulnerable releases; attempt to send a Contact-less SIP message in a lab environment and verify the process no longer crashes.
Typical attack path
- Discover exposed Asterisk PJSIP endpoints via network scanning
- Craft and transmit SIP messages without a Contact header
- Observe service crash and loss of call processing
- Repeat to maintain denial of service
How to detect it
Review Asterisk logs for unexpected crashes or segfaults immediately following receipt of SIP traffic; correlate with network flow data showing SIP requests from external sources.
What your security team should do
- Apply the version-specific updates immediately given the high EPSS score
- Restrict unauthenticated SIP access from untrusted networks
- Enable authentication on all PJSIP endpoints
- Monitor for unexpected Asterisk restarts in process and system logs
The record
An issue was discovered in Asterisk 13.18.4 and older, 14.7.4 and older, 15.1.4 and older, and 13.18-cert1 and older. A select set of SIP messages create a dialog in Asterisk. Those SIP messages must contain a contact header. For those messages, if the header was not present and the PJSIP channel driver was used, Asterisk would crash. The severity of this vulnerability is somewhat mitigated if authentication is enabled. If authentication is enabled, a user would have to first be authorized before reaching the crash point.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | asterisk | 0 | 1:13.18.5~dfsg-1 |
| Ubuntu:18.04:LTS | asterisk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | asterisk | 0 | No fix |
Related vulnerabilities
- CVE-2024-53566 An issue in the action_listcategories() function of Sangoma Asterisk… Also affects asterisk
- CVE-2024-42491 Asterisk is an open-source private branch exchange (PBX). Also affects asterisk
- CVE-2022-39269 PJSIP is a free and open source multimedia communication library written in C. Also affects asterisk
- CVE-2022-24763 PJSIP is a free and open source multimedia communication library written in the C… Also affects asterisk
- CVE-2017-17664 A Remote Crash issue was discovered in Asterisk Open Source 13.x before 13.18.4, 14.x… Also affects asterisk
- CVE-2017-17090 An issue was discovered in chan_skinny.c in Asterisk Open Source 13.18.2 and older… Also affects asterisk
- CVE-2017-16671 A Buffer Overflow issue was discovered in Asterisk Open Source 13 before 13.18.1, 14… Also affects asterisk
- CVE-2017-14098 In the pjsip channel driver (res_pjsip) in Asterisk 13.x before 13.17.1 and 14.x before… Also affects asterisk