{"id":"CVE-2022-31002","aliases":["ALPINE-CVE-2022-31002","DEBIAN-CVE-2022-31002","DLA-3091-1","DSA-5410-1","EUVD-2022-52709","GHSA-g3x6-p824-x6hm","MGASA-2022-0343","UBUNTU-CVE-2022-31002","USN-5932-1"],"status":"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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01925,"percentile":0.8012,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2022-05-31T00:00:00Z","modified":"2026-11-03T08:04:07Z","fixes":[{"ecosystem":"Alpine:v3.14","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"sofia-sip","fixed_in":["1.13.8-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"sofia-sip","fixed_in":["1.12.11+20110422.1+1e14eea~dfsg-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sofia-sip","fixed_in":["1.12.11+20110422.1+1e14eea~dfsg-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sofia-sip","fixed_in":["1.12.11+20110422.1+1e14eea~dfsg-3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"sofia-sip","fixed_in":["1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"sofia-sip","fixed_in":["1.12.11+20110422.1-2.1+deb10u3build0.18.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"sofia-sip","fixed_in":["1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"sofia-sip","fixed_in":["1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.14","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.8-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1+1e14eea~dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1+1e14eea~dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1+1e14eea~dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u1"}]}],"versions":["1.12.11+20110422.1-2.1"],"bundled":3},{"source":"osv","ecosystem":"Debian:11","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb11u1"}]}],"versions":["1.12.11+20110422.1-2.1"],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11-10.1.mga8"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1"}]}],"versions":["1.12.11+20110422.1-2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3build0.18.04.1"}]}],"versions":["1.12.11+20110422.1-2.1","1.12.11+20110422.1-2.1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1"}]}],"versions":["1.12.11+20110422.1-2.1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1"}]}],"versions":["1.12.11+20110422.1-2.1ubuntu1","1.12.11+20110422.1-2.1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1"}]}],"versions":["1.12.11+20110422.1-2ubuntu1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3build0.18.04.1"}]}],"versions":["1.12.11+20110422.1-2.1","1.12.11+20110422.1-2.1build1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1"}]}],"versions":["1.12.11+20110422.1-2.1build1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1"}]}],"versions":["1.12.11+20110422.1-2.1ubuntu1","1.12.11+20110422.1-2.1ubuntu2"],"bundled":5}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"freeswitch","product":"sofia-sip"},{"vendor":"signalwire","product":"sofia-sip"}],"references":[{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-g3x6-p824-x6hm","tags":["x_transferred","Exploit","Third Party Advisory","advisory","report"]},{"url":"https://github.com/freeswitch/sofia-sip/commit/51841eb53679434a386fb2dcbca925dcc48d58ba","tags":["x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00001.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"https://security.gentoo.org/glsa/202210-18","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5410","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-31002","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31002.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31002","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31002","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0343.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30806","tags":["report"]},{"url":"https://www.debian.org/lts/security/2022/dla-3091","tags":["web"]},{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g","tags":["advisory"]},{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-31002","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5932-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31002","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2022-31001","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2022-31003","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2022-47516","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2023-22741","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2025-04-22T17:56:06.613Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:34:34.940806Z"}],"euvd":[{"id":"EUVD-2022-52709","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2025-04-22T17:56:06Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:15.540112Z"}],"nvd":[{"id":"CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T19:15:07.717Z","modified":"2026-06-17T04:44:35.063Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:07:21.261605Z"}],"osv":[{"id":"ALPINE-CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T19:15:07.717Z","modified":"2026-11-03T07:18:33.425525335Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T07:51:12.284675Z"},{"id":"CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2026-10-28T02:30:54.237322103Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:44:25.516981Z"},{"id":"DEBIAN-CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T19:15:07.717Z","modified":"2026-11-03T08:04:07.964512563Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T08:23:07.763774Z"},{"id":"UBUNTU-CVE-2022-31002","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 a crash. This type of crash may be caused by a URL ending with `%`. Version 1.13.8 contains a patch for this issue.","status":"published","published":"2022-05-31T19:15:00Z","modified":"2026-04-22T13:22:32.669491Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:53.899276Z"},{"id":"DLA-3091-1","title":"sofia-sip - security update","status":"published","published":"2022-09-02T00:00:00Z","modified":"2026-03-09T01:21:04.503851Z","updated_at":"2026-11-02T15:46:11.189256Z"},{"id":"DSA-5410-1","title":"sofia-sip - security update","status":"published","published":"2023-05-24T00:00:00Z","modified":"2026-03-09T02:10:12.664363Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"MGASA-2022-0343","title":"Updated sofia-sip packages fix security vulnerability","description":"An attacker can send a message with evil sdp to FreeSWITCH, which may\na cause a crash due to an out-of-bounds access. (CVE-2022-31001)\nAn attacker can send a message with evil sdp to FreeSWITCH, which may\ncause a crash. (CVE-2022-31002)\nAn out-of-bounds write. (CVE-2022-31003)\n","status":"published","published":"2022-09-21T18:15:27Z","modified":"2026-04-16T04:41:12.72619342Z","updated_at":"2026-11-02T15:49:42.263076Z"},{"id":"USN-5932-1","title":"sofia-sip vulnerabilities","description":"It was discovered that Sofia-SIP incorrectly handled specially\ncrafted SDP packets. A remote attacker could use this issue\nto cause applications using Sofia-SIP to crash, leading to\na denial of service, or possibly execute arbitrary code.\nThis issue only affected Ubuntu 16.04 ESM, Ubuntu 18.04 LTS,\nUbuntu 20.04 LTS and Ubuntu 22.04 LTS.\n(CVE-2022-31001, CVE-2022-31002, CVE-2022-31003)\n\nIt was discovered that Sofia-SIP incorrectly handled specially\ncrafted UDP packets. A remote attacker could use this issue\nto cause applications using Sofia-SIP to crash, leading to\na denial of service. (CVE-2022-47516)\n\nQiuhao Li discovered that Sofia-SIP incorrectly handled specially\ncrafted STUN packets. A remote attacker could use this issue\nto cause applications using Sofia-SIP to crash, leading to\na denial of service, or possibly execute arbitrary code.\n(CVE-2023-22741)\n","status":"published","published":"2023-03-07T14:34:13Z","modified":"2026-06-25T13:31:50.539443445Z","updated_at":"2026-11-02T16:58:16.738762Z"}]}}
