{"id":"ALPINE-CVE-2022-31003","details":"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.","modified":"2026-03-09T01:23:12.687262Z","published":"2022-05-31T20:15:07.910Z","upstream":["CVE-2022-31003"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-31003"}],"affected":[{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}},{"package":{"name":"sofia-sip","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/sofia-sip?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}],"versions":["1.13.2-r0","1.13.3-r0","1.13.4-r0","1.13.4-r1","1.13.4-r2","1.13.6-r0","1.13.7-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2022-31003.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}