Asterisk Open Source res_pjsip_session Crash (CVE-2020-28327)

asterisk Updated 02 Oct 2025

Summary

06/11/2020
N/A
Yes i
Medium
5.3

CVE-2020-28327: A res_pjsip_session crash was discovered in Asterisk Open Source 13.x before 13.37.1, 16.x before 16.14.1, 17.x before 17.8.1, and 18.x before 18.0.1. Affects asterisk across 2 version ranges.

< 16.14.1-r0 >= 85335355efb2d7914a1fe20ed31afcef15fd210c, < 57693c3d5059c69222378b798cacc4685b0985e6

Fixed in 16.14.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Asterisk Open Source is a widely used open-source communication platform that provides features such as voice, video, and messaging services. It is designed to work with various communication protocols, including SIP (Session Initiation Protocol). The res_pjsip_session module in Asterisk is responsible for managing SIP sessions. However, a vulnerability has been discovered in versions 13.x, 16.x, 17.x, and 18.x of Asterisk Open Source, as well as Certified Asterisk before 16.8-cert5. This vulnerability, identified as CVE-2020-28327, affects the res_pjsip_session module and can lead to a crash in certain circumstances.

Vulnerability Detail

The vulnerability arises when Asterisk receives a new SIP Invite but fails to properly handle the creation of the dialog object associated with it. This creates a gap between the creation of the dialog object and its subsequent use by the thread that created it. In specific scenarios, another thread can free the dialog object during this gap, leading to a crash when the initial-creation thread tries to access the dialog object or its dependent objects. It is important to note that this crash can only occur when using a connection-oriented protocol (e.g., TCP or TLS) for SIP transport and when the remote client is authenticated or Asterisk is configured for anonymous calling.

How To Fix

Minimum fixed version

16.14.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade asterisk

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the available updates as soon as possible.

Conclusion

In conclusion, the res_pjsip_session crash vulnerability in Asterisk Open Source can lead to crashes in certain scenarios when handling SIP sessions. It is crucial to update to the fixed versions of Asterisk Open Source or Certified Asterisk to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for asterisk →

Share this vulnerability

FAQ

Asterisk Open Source is an open-source communication platform that provides voice, video, and messaging services.

res_pjsip_session is a module in Asterisk that handles the management of SIP sessions.

Versions 13.x, 16.x, 17.x, and 18.x of Asterisk Open Source, as well as Certified Asterisk before 16.8-cert5, are affected.

The crash can occur when using a connection-oriented protocol (e.g., TCP or TLS) for SIP transport and when the remote client is authenticated or Asterisk is configured for anonymous calling.

No, there is no known workaround. It is recommended to update to the fixed versions of Asterisk Open Source or Certified Asterisk.

Related vulnerabilities

Recent vulnerabilities recorded for asterisk.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

16.14.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade asterisk

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback