CVE-2021-31878
NixOS vulnerability analysis and mitigation

Overview

An issue was discovered in PJSIP in Asterisk before 16.19.1 and before 18.5.1, identified as CVE-2021-31878. The vulnerability was reported on April 6, 2021, by Ivan Poddubny and affects the PJSIP channel driver in Asterisk. The issue occurs when a re-INVITE without SDP is received after Asterisk has sent a BYE request (Asterisk Advisory).

Technical details

The vulnerability exists in the respjsipsession.c module and was introduced in a commit fixing ASTERISK-28452. The issue stems from a PJSIP callback (sessioninvoncreateoffer) that incorrectly assumes the astsipsession always has a channel. When session->channel is NULL, astqueueunhold(NULL) causes Asterisk to log assertion failures and crash (JIRA Issue). The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability results in a denial of service condition where an authenticated attacker can cause Asterisk to crash. This affects the availability of the system, potentially disrupting voice communications services (Asterisk Advisory).

Mitigation and workarounds

The vulnerability was fixed in Asterisk versions 16.19.1 and 18.5.1. Users should upgrade to these or later versions. Patches were also made available for affected versions through AST-2021-007-16.diff and AST-2021-007-18.diff (Asterisk Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management