9.8

CVE-2023-22741: heap-over-flow in stun_parse_attribute in sofia-sip

Modified
AliasesALPINE-CVE-2023-22741MGASA-2023-0040UBUNTU-CVE-2023-22741
Published 19-01-2023Last modified 10-03-2025

Vulnerability summary

CVE-2023-22741 is a critical (CVSS 9.8) vulnerability in freeswitch sofia-sip. EPSS estimates a 2.48% chance of exploitation in the next 30 days, higher than 84.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
2.48%
0%100%
Low · +0.10 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 19-01-2023
    PublishedVulnerability first disclosed.
  2. 10-03-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

2.48%

Chance of exploitation in the next 30 days

Percentile

85%

Versus all other CVEs

30-day change

Increase +0.10 pp

From 2.38% on 11-10-2026

11-10-202610-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Sofia Sip

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • sofia-sip< 1.13.11-r0
Debian1 product
  • sofia-sip< 1.12.11+20110422.1-2.1+deb10u2 | < 1.12.11+20110422.1+1e14eea~dfsg-4
Freeswitch1 product
Mageia1 product
  • sofia-sip< 1.12.11-10.2.mga8
Signalwire1 product
Ubuntu1 product
  • sofia-sip< 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 | < 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 | < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 | < 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1

6 vendors · 6 products

References

11 links
Show all 11 references