{"id":"CVE-2022-31001","state":"PUBLISHED","title":"Out-of-bounds Read in Sofia-SIP","description":"Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by `#define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0)`, which will make `n` bigger and trigger out-of-bound access when `IS_NON_WS(s[n])`. Version 1.13.8 contains a patch for this issue.","publishedAt":"2022-05-31T00:00:00.000Z","updatedAt":"2024-08-03T07:03:40.212Z","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":["freeswitch sofia-sip"],"affected":[{"vendor":"freeswitch","product":"sofia-sip","versions":[{"version":"< 1.13.8","status":"affected"}]}],"references":["https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","https://security.gentoo.org/glsa/202210-18","https://www.debian.org/security/2023/dsa-5410"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T19:50:06.617Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/31xxx/CVE-2022-31001.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-31001","state":"PUBLISHED","datePublished":"2022-05-31T00:00:00.000Z","dateUpdated":"2024-08-03T07:03:40.212Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-05-18T00:00:00.000Z"},"containers":{"cna":{"title":"Out-of-bounds Read in Sofia-SIP","descriptions":[{"lang":"en","value":"Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by `#define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0)`, which will make `n` bigger and trigger out-of-bound access when `IS_NON_WS(s[n])`. Version 1.13.8 contains a patch for this issue."}],"affected":[{"vendor":"freeswitch","product":"sofia-sip","versions":[{"version":"< 1.13.8","status":"affected"}]}],"references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g"},{"url":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36"},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","name":"[debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202210-18","name":"GLSA-202210-18","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5410","name":"DSA-5410","tags":["vendor-advisory"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","type":"CWE","lang":"en","description":"CWE-125: Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-05-24T00:00:00.000Z"},"source":{"advisory":"GHSA-79jq-hh82-cv9g","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","tags":["x_transferred"]},{"url":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","name":"[debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202210-18","name":"GLSA-202210-18","tags":["vendor-advisory","x_transferred"]},{"url":"https://www.debian.org/security/2023/dsa-5410","name":"DSA-5410","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:03:40.212Z"}}]}}}