CVE-2022-31001
Signalwire Sofia-sip vulnerability
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by `#define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0)`, which will make `n` bigger and trigger out-of-bound access when `IS_NON_WS(s[n])`. Version 1.13.8 contains a patch for this issue.
Affected products
Sofia-sip, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Signalwire Sofia-sip runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36 · Patch
- github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g · Exploit
- lists.debian.org/debian-lts-announce/2022/09/msg00001.html · Third Party Advisory
- security.gentoo.org/glsa/202210-18 · Third Party Advisory
- www.debian.org/security/2023/dsa-5410 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-31001
- cve.org/CVERecord?id=CVE-2022-31001
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.