CVE-2022-31001
Out-of-bounds Read in Sofia-SIP
Reported by github_m · Published May 31, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sofia-sip | Alpine | 1.13.8-r0 |
| sofia-sip | signalwire | 1.13.8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| freeswitch | sofia-sip | < 1.13.8 |
| alpine | sofia-sip | 0 |
| freeswitch | sofia-sip | 0 |
Timeline
- May 31, 2022 CVE Published
- Jun 1, 2022 EPSS Score (30 in total, the first dated here)
- Aug 3, 2024 CVE Updated
- Mar 10, 2026 Distribution Patch
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Jun 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-31001
vulnetix vdb fixes CVE-2022-31001
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31001/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20220902 [SECURITY] [DLA 3091-1] sofia-sip security update mailing-list
- GLSA-202210-18 vendor-advisory
- DSA-5410 vendor-advisory