CVE-2022-31003
Heap-based Buffer Overflow and Out-of-bounds Write 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, 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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| freeswitch | sofia-sip | < 1.13.8 |
| freeswitch | sofia-sip | 0 |
| alpine | sofia-sip | 0 |
Timeline
- May 31, 2022 CVE Published
- Jun 1, 2022 EPSS Score (30 in total, the first dated here)
- Apr 22, 2025 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-31003
vulnetix vdb fixes CVE-2022-31003
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-31003/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