CVE-2021-41158: FreeSWITCH vulnerable to SIP digest leak for configured gateways

Published Oct 26, 2021
·
Updated

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 sofiareg.c, sofiareghandlesiprchallenge() 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.

Affected Software

1 affected component
FreeSWITCH FreeSWITCH<1.10.7

Event History

Oct 26, 2021
CVE Published
via MITRE·01:55 PM
Data Sourced
via MITRE·01:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-41158?

CVE-2021-41158 is a vulnerability in FreeSWITCH, a Software Defined Telecom Stack, which allows an attacker to perform a SIP digest leak attack and receive the challenge response without proper authentication.

2

What is the severity of CVE-2021-41158?

CVE-2021-41158 has a severity level of high, with a severity value of 7.5.

3

How does CVE-2021-41158 affect FreeSWITCH?

CVE-2021-41158 affects FreeSWITCH prior to version 1.10.7, allowing an attacker to perform a SIP digest leak attack.

4

How can I fix CVE-2021-41158?

To fix CVE-2021-41158, it is recommended to update FreeSWITCH to version 1.10.7 or later.

5

Are there any references for CVE-2021-41158?

Yes, you can find more information about CVE-2021-41158 at the following references: [1] [2] [3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203