Cloudanix VulnDB

CVE-2017-17850

High · 7.5

CVSS

7.5

EPSS

75.4%

Published

Dec 27, 2017

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Attend

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

  1. Discover exposed Asterisk PJSIP endpoints via network scanning
  2. Craft and transmit SIP messages without a Contact header
  3. Observe service crash and loss of call processing
  4. 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