Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-41158

published medium CVSS 3.1 · 5.8

FreeSWITCH vulnerable to SIP digest leak for configured gateways

Published
26 Oct 2021, 13:55:10 UTC
Updated
04 Aug 2024, 02:59:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
signalwire — freeswitch< 1.10.7 Affected Not stated GitHub_M
Alpine Linux edge freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.15 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.16 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.17 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.18 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.19 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.20 freeswitch Fixed 1.10.7-r0 Package fix record
Show 4 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.21 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.22 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.23 freeswitch Fixed 1.10.7-r0 Package fix record
Alpine Linux v3.24 freeswitch Fixed 1.10.7-r0 Package fix record

Description

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a software implementation that runs on any commodity hardware. Prior to version 1.10.7, an attacker can perform a SIP digest leak attack against FreeSWITCH and receive the challenge response of a gateway configured on the FreeSWITCH server. This is done by challenging FreeSWITCH's SIP requests with the realm set to that of the gateway, thus forcing FreeSWITCH to respond with the challenge response which is based on the password of that targeted gateway. Abuse of this vulnerability allows attackers to potentially recover gateway passwords by performing a fast offline password cracking attack on the challenge response. The attacker does not require special network privileges, such as the ability to sniff the FreeSWITCH's network traffic, to exploit this issue. Instead, what is required for this attack to work is the ability to cause the victim server to send SIP request messages to the malicious party. Additionally, to exploit this issue, the attacker needs to specify the correct realm which might in some cases be considered secret. However, because many gateways are actually public, this information can easily be retrieved. The vulnerability appears to be due to the code which handles challenges in `sofia_reg.c`, `sofia_reg_handle_sip_r_challenge()` which does not check if the challenge is originating from the actual gateway. The lack of these checks allows arbitrary UACs (and gateways) to challenge any request sent by FreeSWITCH with the realm of the gateway being targeted. This issue is patched in version 10.10.7. Maintainers recommend that one should create an association between a SIP session for each gateway and its realm to make a check be put into place for this association when responding to challenges.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

11

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.8 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
signalwire freeswitch < 1.10.7 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (GitHub_M · cna)

References

3

Provider assertions

2

GitHub_M · cna

FreeSWITCH vulnerable to SIP digest leak for configured gateways

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
fdbdecfcdfbaefd37ce6eb970b81423998c16d503d2c8ff1eaa8e0be64ccc255
Ingested
23 Sep 2026, 07:56:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected