{"api_version":"1","generated_at":"2026-06-10T20:52:56+00:00","cve":"CVE-2022-31001","urls":{"html":"https://cve.report/CVE-2022-31001","api":"https://cve.report/api/cve/CVE-2022-31001.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31001","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31001"},"summary":{"title":"CVE-2022-31001","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-05-31 20:15:00","updated_at":"2023-05-24 21:15:00"},"problem_types":["CWE-125"],"metrics":[],"references":[{"url":"https://www.debian.org/security/2023/dsa-5410","name":"DSA-5410","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5410-1 sofia-sip","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202210-18","name":"GLSA-202210-18","refsource":"GENTOO","tags":[],"title":"Sofia-SIP: Multiple Vulnerabilities (GLSA 202210-18) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","name":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-79jq-hh82-cv9g · freeswitch/sofia-sip@a99804b · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","name":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","refsource":"CONFIRM","tags":[],"title":"sip_method_d Out-of-bound read · Advisory · freeswitch/sofia-sip · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"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","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3091-1] sofia-sip security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31001","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31001","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31001","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31001","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"signalwire","cpe5":"sofia-sip","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31001","qid":"180986","title":"Debian Security Update for sofia-sip (DLA 3091-1)"},{"cve":"CVE-2022-31001","qid":"181801","title":"Debian Security Update for sofia-sip (DSA 5410-1)"},{"cve":"CVE-2022-31001","qid":"183979","title":"Debian Security Update for sofia-sip (CVE-2022-31001)"},{"cve":"CVE-2022-31001","qid":"199225","title":"Ubuntu Security Notification for Sofia-SIP Vulnerabilities (USN-5932-1)"},{"cve":"CVE-2022-31001","qid":"502678","title":"Alpine Linux Security Update for sofia-sip"},{"cve":"CVE-2022-31001","qid":"504408","title":"Alpine Linux Security Update for sofia-sip"},{"cve":"CVE-2022-31001","qid":"710654","title":"Gentoo Linux Sofia-SIP Multiple Vulnerabilities (GLSA 202210-18)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31001","STATE":"PUBLIC","TITLE":"Out-of-bounds Read in Sofia-SIP"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sofia-sip","version":{"version_data":[{"version_value":"< 1.13.8"}]}}]},"vendor_name":"freeswitch"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"impact":{"cvss":{"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"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-125: Out-of-bounds Read"}]}]},"references":{"reference_data":[{"name":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","refsource":"CONFIRM","url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g"},{"name":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","refsource":"MISC","url":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html"},{"refsource":"GENTOO","name":"GLSA-202210-18","url":"https://security.gentoo.org/glsa/202210-18"},{"refsource":"DEBIAN","name":"DSA-5410","url":"https://www.debian.org/security/2023/dsa-5410"}]},"source":{"advisory":"GHSA-79jq-hh82-cv9g","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-05-31 20:15:00","lastModifiedDate":"2023-05-24 21:15:00","problem_types":["CWE-125"],"metrics":{"baseMetricV3":{"cvssV3":{"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"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:signalwire:sofia-sip:*:*:*:*:*:*:*:*","versionEndExcluding":"1.13.8","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}