sofia-sip — security advisory
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.
- Products
- sofia-sip
- Affected versions
- Not specified
- Fixed versions
- 1.12.11+20110422.1+1e14eea~dfsg-3
- CVEs
- CVE-2022-31003
- 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, 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.
osv:DEBIAN-CVE-2022-31003
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": "c6d845a1606c3dd95353fb14f09133e797bf25050883368fb77e01f545b72660",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-31003",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-31003",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2022-31003",
"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": "critical",
"structured": {
"id": "DEBIAN-CVE-2022-31003",
"aliases": [
"DEBIAN-CVE-2022-31003"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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-31003.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-31003.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-31003.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:02:38.495504813Z",
"provider": "osv",
"upstream": [
"CVE-2022-31003"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-31003"
]
},
"related_cves": [
{
"value": "CVE-2022-31003",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 323844,
"published_at": "2022-05-31T20:15:07.91+00:00"
}