{"id":"CVE-2023-27601","published":"2023-03-15T21:32:56Z","modified":"2025-02-25T14:56:36Z","title":"OpenSIPS has vulnerability in the codec_delete_XX() functions","vendor":"OpenSIPS","product":"opensips","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0099,"percentile":0.63357,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","tags":["x_refsource_MISC"]},{"url":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html","tags":["x_refsource_MISC"]},{"url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":12.67},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"opensips","affectedVersions":[{"vendor":"OpenSIPS","product":"opensips","versions":["< 3.1.7",">= 3.2.0, < 3.2.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:30:47.061221Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-31340","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opensips-cve-2023-27596","parents":[{"from":"CVE-2023-27596","to":"CVE-2023-27601","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/sipmsgops/codecs.c"],"commits":["https://github.com/OpenSIPS/opensips/commit/dd051f8ed5ae3347fb1d556ced3c97822c9d8450","https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf"],"basis":"shared function","functions":["sip_msg"]}]},{"from":"CVE-2023-27600","to":"CVE-2023-27601","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/sipmsgops/codecs.c"],"commits":["https://github.com/OpenSIPS/opensips/commit/c6ab3bb406c447e30c7d33a1a8970048b4612100","https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf"],"basis":"shared function","functions":["sip_msg"]},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}]}}