BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-31878 in Digium Asterisk

Medium 6.5 Fix available

An issue was discovered in PJSIP in Asterisk before 16.19.1 and before 18.5.1. To exploit, a re-INVITE without SDP must be received after Asterisk has sent a BYE request.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
EPSS2.5%
EPSS percentile85th
FixAvailable

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Digium Asterisk 16.17.0 16.18.0 16.19.0 18.3.0 18.4.0 18.5.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

An issue was discovered in PJSIP in Asterisk before 16.19.1 and before 18.5.1. To exploit, a re-INVITE without SDP must be received after Asterisk has sent a BYE request.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-31878
BreachSpider IDBS-2021-GLOBAL-076321-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2021-07-30
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-617: CWE-617

Analysis AI-written, not human-reviewed

A vulnerability in PJSIP within Asterisk versions prior to 16.19.1 and 18.5.1 allows for a re-INVITE without SDP to be processed after a BYE request, potentially leading to unauthorized media stream manipulation.

An attacker can exploit this vulnerability by sending a re-INVITE request without Session Description Protocol (SDP) information after Asterisk has sent a BYE request, which could allow the attacker to manipulate the media stream or cause a denial of service.

Questions

What is CVE-2021-31878?

A vulnerability in PJSIP within Asterisk versions prior to 16.19.1 and 18.5.1 allows for a re-INVITE without SDP to be processed after a BYE request, potentially leading to unauthorized media stream manipulation.

What is the CVSS score for CVE-2021-31878?

CVE-2021-31878 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 2.5%.

Is CVE-2021-31878 actively exploited?

No confirmed active exploitation of CVE-2021-31878 as of 2026-05-30.

How do I remediate CVE-2021-31878?

Priority: MEDIUM. Advisory: https://downloads.digium.com/pub/security/AST-2021-007.html PSIRT: [email protected]

What systems are affected by CVE-2021-31878?

CVE-2021-31878 affects Digium Asterisk.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Digium","product":"Asterisk","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.