{"id":"CVE-2023-27601","summary":"OpenSIPS has vulnerability in the codec_delete_XX() functions","details":"OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Prior to versions 3.1.7 and 3.2.4, OpenSIPS crashes when a malformed SDP body is received and is processed by the `delete_sdp_line` function in the sipmsgops module. This issue can be reproduced by calling the function with an SDP body that does not terminate by a line feed (i.e. `\\n`).\n\nThe vulnerability was found while performing black-box fuzzing against an OpenSIPS server running a configuration that made use of the functions `codec_delete_except_re` and `codec_delete_re`. The same issue was also discovered while performing coverage guided fuzzing on the function `codec_delete_except_re`. The crash happens because the function `delete_sdp_line` expects that an SDP line is terminated by a line feed (`\\n`):\n\nBy abusing this vulnerability, an attacker is able to crash the server. It affects configurations containing functions that rely on the affected code, such as the function `codec_delete_except_re`. Due to the sanity check that is performed in the `del_lump` function, exploitation of this issue will generate an `abort` in the lumps processing function, resulting in a Denial of Service. This issue has been fixed in versions 3.1.7 and 3.2.4.","aliases":["GHSA-xj5x-g52f-548h"],"modified":"2026-09-09T08:15:11.889362Z","published":"2023-03-15T21:32:56.061Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27601.json"},"references":[{"type":"WEB","url":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html"},{"type":"WEB","url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27601.json"},{"type":"ADVISORY","url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27601"},{"type":"FIX","url":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensips/opensips","events":[{"introduced":"0"},{"fixed":"c4122c9860458616cb438795c3545cd0f6014927"},{"introduced":"1e94abe8837fe3511fada132d67a6385d8d099a2"},{"fixed":"50407d34067f0e80765617c3bace78639e380d5a"},{"fixed":"8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf"}],"database_specific":{"cpe":"cpe:2.3:a:opensips:opensips:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.1.7"},{"introduced":"3.2.0"},{"fixed":"3.2.4"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["3.2.3","3.1.6","3.2.2","3.1.5","3.1.4","3.2.1","3.2.0","3.1.3","3.1.2","3.1.1","3.1.0","3.1.0-beta","2.1-rc1","2.1-alpha3","2.1-alpha2","2.1-alpha1","1.11.0"],"database_specific":{"vanir_signatures_modified":"2026-09-09T08:15:11Z","vanir_signatures":[{"source":"https://github.com/opensips/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","target":{"file":"modules/sipmsgops/codecs.c"},"deprecated":false,"digest":{"line_hashes":["137877868784411171338607751634666371930","47013258541762614837183498924632224066","146429316340920740503915066674548768309","108867806995449837497039208868456638499","303261825899314458415077583757692131319","296574181230925816220813797561410206723","185559832749483002339328851325654923499","21802054619684391566923346363372832010","234744678462831931925457077048295372675","136346067555153709311866028472025994940","227542366407315427743977172890608901002","214194216108536255633214132617589708641","335237867821769643632926608842751097923","237669290061652301130179283281809423530","331235505911565805072154525433791441002","307027807423216033157631003906176742020","241730297197051097013444427961271157087","235699051703483828369216726421441618082","54285436828152991709677684153162870103","240093093474546853571975362459178521333","214163547314968053099764519389406917181"],"threshold":0.9},"id":"CVE-2023-27601-5165cbc8","signature_type":"Line","signature_version":"v1"},{"id":"CVE-2023-27601-5c9ef606","signature_type":"Function","signature_version":"v1","source":"https://github.com/opensips/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","target":{"function":"delete_sdp_line","file":"modules/sipmsgops/codecs.c"},"deprecated":false,"digest":{"function_hash":"189081220199094006722572942584099810918","length":311}},{"signature_version":"v1","source":"https://github.com/opensips/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","target":{"file":"modules/sipmsgops/codecs.c","function":"stream_process"},"deprecated":false,"digest":{"length":6916,"function_hash":"185169058615820288771043504041500715922"},"id":"CVE-2023-27601-877c362e","signature_type":"Function"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-27601.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}