{"api_version":"1","generated_at":"2026-06-10T19:27:55+00:00","cve":"CVE-2022-31003","urls":{"html":"https://cve.report/CVE-2022-31003","api":"https://cve.report/api/cve/CVE-2022-31003.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31003","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31003"},"summary":{"title":"CVE-2022-31003","description":"Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. 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-787","CWE-122"],"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/907f2ac0ee504c93ebfefd676b4632a3575908c9","name":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-8w5j-6g2j-pxcp · freeswitch/sofia-sip@907f2ac · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","name":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","refsource":"CONFIRM","tags":[],"title":"sdp_parse Heap-buffer-overflow · 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-31003","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31003","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31003","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":"31003","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-31003","qid":"180986","title":"Debian Security Update for sofia-sip (DLA 3091-1)"},{"cve":"CVE-2022-31003","qid":"181801","title":"Debian Security Update for sofia-sip (DSA 5410-1)"},{"cve":"CVE-2022-31003","qid":"199225","title":"Ubuntu Security Notification for Sofia-SIP Vulnerabilities (USN-5932-1)"},{"cve":"CVE-2022-31003","qid":"502678","title":"Alpine Linux Security Update for sofia-sip"},{"cve":"CVE-2022-31003","qid":"504408","title":"Alpine Linux Security Update for sofia-sip"},{"cve":"CVE-2022-31003","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-31003","STATE":"PUBLIC","TITLE":"Heap-based Buffer Overflow and Out-of-bounds Write 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, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. Version 1.13.8 contains a patch for this issue."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-122: Heap-based Buffer Overflow"}]},{"description":[{"lang":"eng","value":"CWE-787: Out-of-bounds Write"}]}]},"references":{"reference_data":[{"name":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","refsource":"CONFIRM","url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp"},{"name":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9","refsource":"MISC","url":"https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9"},{"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-8w5j-6g2j-pxcp","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-05-31 20:15:00","lastModifiedDate":"2023-05-24 21:15:00","problem_types":["CWE-787","CWE-122"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"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":[]}}}