{"id":"CVE-2022-31001","aliases":["ALPINE-CVE-2022-31001","DEBIAN-CVE-2022-31001","DLA-3091-1","DSA-5410-1","EUVD-2022-52708","GHSA-79jq-hh82-cv9g","MGASA-2022-0343","UBUNTU-CVE-2022-31001","USN-5932-1","openSUSE-SU-2026:10964-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 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.","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-11","score":0.0222,"percentile":0.82906,"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-03T07:18:33Z","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"]},{"ecosystem":"openSUSE:Tumbleweed","package":"sofia-sip","fixed_in":["1.13.17+50-1.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},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"sofia-sip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.17+50-1.1"}]}]}],"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-79jq-hh82-cv9g","tags":["x_transferred","Exploit","Third Party Advisory","advisory","report"]},{"url":"https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36","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","Third Party Advisory","advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-31001","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31001.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31001","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31001","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-g3x6-p824-x6hm","tags":["advisory"]},{"url":"https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-31001","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5932-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31001","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2022-31002","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"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-31001","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-31001","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.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2024-08-03T07:03:40.212Z","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-52708","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.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2024-08-03T07:03:40Z","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-03T03:25:34.735493Z"}],"nvd":[{"id":"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.","status":"published","published":"2022-05-31T20:15:07.85Z","modified":"2026-06-17T04:44:34.95Z","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-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.","status":"published","published":"2022-05-31T20:15:07.85Z","modified":"2026-11-03T07:18:33.42275733Z","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-31001","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.","status":"published","published":"2022-05-31T00:00:00Z","modified":"2026-10-28T02:31:04.036254839Z","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":"UBUNTU-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.","status":"published","published":"2022-05-31T20:15:00Z","modified":"2026-04-22T13:22:04.439544Z","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":"DEBIAN-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.","status":"published","published":"2022-05-31T20:15:07.85Z","modified":"2026-11-03T06:02:32.111112369Z","updated_at":"2026-11-03T06:44:05.456691Z"},{"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":"openSUSE-SU-2026:10964-1","title":"libsofia-sip-ua-glib3-1.13.17+50-1.1 on GA media","description":"These are all security issues fixed in the libsofia-sip-ua-glib3-1.13.17+50-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-06-05T00:00:00Z","modified":"2026-06-06T07:30:31.920527183Z","updated_at":"2026-11-02T16:58:38.95195Z"},{"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"}]}}
