sofia-sip — security advisory
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.
- Products
- sofia-sip
- Affected versions
- Not specified
- Fixed versions
- 1.12.11+20110422.1+1e14eea~dfsg-3
- CVEs
- CVE-2022-31001
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:57 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2022-31001
sofia-sip
Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-3
sofia-sip
Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-3
sofia-sip
Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-3
Complete source record
{
"id": "e035f3041b57acf8bdbb770fef57cd1480488ccb7ab161ee35077371d96cd872",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-31001",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-31001",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2022-31001",
"products": [
{
"name": {
"value": "sofia-sip",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.11+20110422.1+1e14eea~dfsg-3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sofia-sip",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.11+20110422.1+1e14eea~dfsg-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sofia-sip",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.11+20110422.1+1e14eea~dfsg-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-31001",
"aliases": [
"DEBIAN-CVE-2022-31001"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.11+20110422.1+1e14eea~dfsg-3"
}
]
}
],
"package": {
"name": "sofia-sip",
"purl": "pkg:deb/debian/sofia-sip?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31001.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.11+20110422.1+1e14eea~dfsg-3"
}
]
}
],
"package": {
"name": "sofia-sip",
"purl": "pkg:deb/debian/sofia-sip?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31001.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.11+20110422.1+1e14eea~dfsg-3"
}
]
}
],
"package": {
"name": "sofia-sip",
"purl": "pkg:deb/debian/sofia-sip?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31001.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:02:38.483358233Z",
"provider": "osv",
"upstream": [
"CVE-2022-31001"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-31001"
]
},
"related_cves": [
{
"value": "CVE-2022-31001",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 323841,
"published_at": "2022-05-31T20:15:07.85+00:00"
}