CVE-2021-41158
published medium CVSS 3.1 · 5.8FreeSWITCH vulnerable to SIP digest leak for configured gateways
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
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.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| signalwire | freeswitch | < 1.10.7 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
References
3Provider assertions
2GitHub_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