{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41158 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-41158 is a medium-severity vulnerability in signalwire freeswitch, published on 26 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41158 and fix it if it is affected.\n\nWhat it is: CVE-2021-41158 is a medium-severity vulnerability in signalwire freeswitch, published on 26 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-41158 in the wild and no public exploit code.\n\nAffected product: signalwire freeswitch. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41158/ (Markdown: https://insights.sbomify.com/CVE-2021-41158/index.md)","id":"CVE-2021-41158","markdown":"https://insights.sbomify.com/CVE-2021-41158/index.md","name":"CVE-2021-41158","record":{"aliases":["ALPINE-CVE-2021-41158","GHSA-3v3f-99mv-qvj4"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"VoIP software stack","requires_auth":"none","summary":"Attackers can leak SIP digest responses to recover gateway passwords, enabling unauthorized access to configured telecom gateways.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"freeswitch","vendor":"freeswitch"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"FreeSWITCH vulnerable to SIP digest leak for configured gateways","id":"CVE-2021-41158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Improper client input validation for FreeRDP gateway connections allows to overwrite memory","id":"CVE-2021-41159"},"packages":[],"prev":{"headline":"FreeSWITCH does not authenticate SIP SUBSCRIBE requests by default","id":"CVE-2021-41157"},"products":["freeswitch"],"published":"2021-10-26","related":[{"cvss_score":9.8,"headline":"FreeSWITCH: Pre-authentication heap buffer overflow in `mod_verto` HTTP POST body read","id":"CVE-2026-49841","kev_date_added":null,"published":"2026-06-09"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2019-19492","kev_date_added":null,"published":"2019-12-02"},{"cvss_score":9.1,"headline":"FreeSWITCH: Pre-authentication heap buffer overflow in libesl `Content-Length` parsing","id":"CVE-2026-49840","kev_date_added":null,"published":"2026-06-09"},{"cvss_score":8.6,"headline":"FreeSWITCH susceptible to Denial of Service via SIP flooding","id":"CVE-2021-41145","kev_date_added":null,"published":"2021-10-25"},{"cvss_score":7.5,"headline":"Freeswitch Denial-of-Service in SIP PUBLISH Requests via XML Entity Expansion","id":"CVE-2026-45771","kev_date_added":null,"published":"2026-06-09"},{"cvss_score":7.5,"headline":"FreeSWITCH: Out-of-bounds memory access in core STUN attribute parsing","id":"CVE-2026-49475","kev_date_added":null,"published":"2026-06-09"},{"cvss_score":7.5,"headline":"FreeSWITCH: Pre-authentication bandwidth amplification via `mod_verto` speed-test frames","id":"CVE-2026-49842","kev_date_added":null,"published":"2026-06-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["signalwire"]},"summary":"Attackers can leak SIP digest responses to recover gateway passwords, enabling unauthorized access to configured telecom gateways.","url":"https://insights.sbomify.com/CVE-2021-41158/"}