Buffer overflow in Freeswitch Sofia-Sip
CVE-2022-31003
Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. Version 1.13.8 contains a patch for this issue.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.041, 91.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Freeswitch Sofia-Sip — versions < 1.13.8
- Signalwire Sofia-Sip
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (DiRaltvein/memory-corruption-examples). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp (Exploit, Third Party Advisory)
- github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9 (Patch, Third Party Advisory)
- [debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202210-18 (vendor-advisory, Third Party Advisory)
- DSA-5410 (vendor-advisory)