CVE-2023-27601: OpenSIPS has vulnerability in the codec_delete_XX() functions
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 deletesdpline 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 codecdeleteexceptre and codecdeletere. The same issue was also discovered while performing coverage guided fuzzing on the function codecdeleteexceptre. The crash happens because the function deletesdpline 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 codecdeleteexceptre. Due to the sanity check that is performed in the dellump 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-27601?
CVE-2023-27601 is classified as a critical vulnerability due to the potential for denial of service through application crashes.
How do I fix CVE-2023-27601?
To address CVE-2023-27601, upgrade OpenSIPS to version 3.1.7 or 3.2.4 or later.
What causes the crash in CVE-2023-27601?
The crash in CVE-2023-27601 is triggered by processing a malformed Session Description Protocol (SDP) body in the delete_sdp_line function.
Is CVE-2023-27601 present in all OpenSIPS versions?
No, CVE-2023-27601 affects OpenSIPS versions prior to 3.1.7 and between 3.2.0 and 3.2.4.
What is OpenSIPS?
OpenSIPS is an open-source Session Initiation Protocol (SIP) server that facilitates the management of VoIP calls and messaging.