{"id":"CVE-2023-27601","state":"PUBLISHED","title":"OpenSIPS has vulnerability in the codec_delete_XX() functions","description":"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.","publishedAt":"2023-03-15T21:32:56.061Z","updatedAt":"2025-02-25T14:56:36.328Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["OpenSIPS opensips"],"affected":[{"vendor":"OpenSIPS","product":"opensips","versions":[{"version":"< 3.1.7","status":"affected"},{"version":">= 3.2.0, < 3.2.4","status":"affected"}]}],"references":["https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","https://opensips.org/docs/modules/3.3.x/sipmsgops.html","https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/27xxx/CVE-2023-27601.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-27601","state":"PUBLISHED","datePublished":"2023-03-15T21:32:56.061Z","dateUpdated":"2025-02-25T14:56:36.328Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-03-04T01:03:53.637Z"},"containers":{"cna":{"title":"OpenSIPS has vulnerability in the codec_delete_XX() functions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"OpenSIPS","product":"opensips","versions":[{"version":"< 3.1.7","status":"affected"},{"version":">= 3.2.0, < 3.2.4","status":"affected"}]}],"references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","name":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","name":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","tags":["x_refsource_MISC"]},{"url":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html","name":"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","name":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-03-15T21:32:56.061Z"},"source":{"advisory":"GHSA-xj5x-g52f-548h","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","name":"https://github.com/OpenSIPS/opensips/security/advisories/GHSA-xj5x-g52f-548h","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","name":"https://github.com/OpenSIPS/opensips/commit/8f87c7c03da55f9c79bd92e67fa2c94b2a7ce5cf","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html","name":"https://opensips.org/docs/modules/3.3.x/sipmsgops.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","name":"https://opensips.org/pub/audit-2022/opensips-audit-technical-report-full.pdf","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T12:16:36.285Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-25T14:30:47.061221Z","id":"CVE-2023-27601","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-25T14:56:36.328Z"}}]}}}