cve.bz

CVE-2023-22741 signalwire sofia-sip: Out-of-bounds Write

9.8 criticalExploit referenceEPSS 2.6%Fix available

Critical (9.8) in signalwire sofia-sip. EPSS 2.6% estimated probability of exploitation activity in the next 30 days.

On this page
Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. In affected versions Sofia-SIP **lacks both message length and attributes length checks** when it handles STUN packets, leading to controllable heap-over-flow. For example, in stun_parse_attribute(), after we get the attribute's type and length value, the length will be used directly to copy from the heap, regardless of the message's left size. Since network users control the overflowed length, and the data is written to heap chunks later, attackers may achieve remote code execution by heap grooming or other exploitation methods. The bug was introduced 16 years ago in sofia-sip 1.12.4 (plus some patches through 12/21/2006) to in tree libs with git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3774 d0543943-73ff-0310-b7d9-9358b9ac24b2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.6% (unchanged from 2.5% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-22741 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-22741?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-22741?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-22741 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
signalwire:sofia-sipbefore 1.13.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10sofia-sip1.12.11+20110422.1-2.1+deb10u2DLA-3292-1
Debian11sofia-sip1.12.11+20110422.1-2.1+deb11u1DSA-5410-1
Debian12, 13, 14sofia-sip1.12.11+20110422.1+1e14eea~dfsg-4DEBIAN-CVE-2023-22741
Ubuntu18.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3build0.18.04.1UBUNTU-CVE-2023-22741 USN-5932-1
Ubuntu20.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1UBUNTU-CVE-2023-22741 USN-5932-1
Ubuntu22.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1UBUNTU-CVE-2023-22741 USN-5932-1
UbuntuPro:16.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1UBUNTU-CVE-2023-22741 USN-5932-1
Alpinev3.14, v3.15, v3.16 and 8 moresofia-sip1.13.11-r0ALPINE-CVE-2023-22741

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON