{"id":"UBUNTU-CVE-2023-27601","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`). The 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`): By 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.","modified":"2025-10-24T05:01:52Z","published":"2023-03-15T22:15:00Z","upstream":["CVE-2023-27601"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-27601"},{"type":"REPORT","url":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf"},{"type":"REPORT","url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h"},{"type":"REPORT","url":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html"},{"type":"REPORT","url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-27601"}],"affected":[{"package":{"name":"opensips","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/opensips@2.2.2-3build4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.2-3build2","2.2.2-3build3","2.2.2-3build4"],"ecosystem_specific":{"binaries":[{"binary_name":"opensips","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-b2bua-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-berkeley-bin","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-berkeley-module","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-carrierroute-module"},{"binary_name":"opensips-compression-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-console","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-cpl-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-dbhttp-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-dialplan-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-emergency-module","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-geoip-module"},{"binary_name":"opensips-http-modules","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-identity-module"},{"binary_name":"opensips-jabber-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-json-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-ldap-modules","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-lua-module"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-memcached-module"},{"binary_name":"opensips-mysql-module","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-perl-modules"},{"binary_name":"opensips-postgres-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-presence-modules","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-rabbitmq-module","binary_version":"2.2.2-3build4"},{"binary_version":"2.2.2-3build4","binary_name":"opensips-radius-modules"},{"binary_name":"opensips-redis-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-regex-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-restclient-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-sctp-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-snmpstats-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-sqlite-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-tls-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-tlsmgm-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-unixodbc-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-wss-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-xmlrpc-module","binary_version":"2.2.2-3build4"},{"binary_name":"opensips-xmpp-module","binary_version":"2.2.2-3build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27601.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}