Skip to content
OpenAdvisories
Critical USN-5932-1 5 CVEs

sofia-sip vulnerabilities

Published Mar 7, 2023 · Updated Jun 25, 2026

Summary

It was discovered that Sofia-SIP incorrectly handled specially
crafted SDP packets. A remote attacker could use this issue
to cause applications using Sofia-SIP to crash, leading to
a denial of service, or possibly execute arbitrary code.
This issue only affected Ubuntu 16.04 ESM, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
(CVE-2022-31001, CVE-2022-31002, CVE-2022-31003)

It was discovered that Sofia-SIP incorrectly handled specially
crafted UDP packets. A remote attacker could use this issue
to cause applications using Sofia-SIP to crash, leading to
a denial of service. (CVE-2022-47516)

Qiuhao Li discovered that Sofia-SIP incorrectly handled specially
crafted STUN packets. A remote attacker could use this issue
to cause applications using Sofia-SIP to crash, leading to
a denial of service, or possibly execute arbitrary code.
(CVE-2023-22741)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · 18.04 LTS 18.04:LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
Ubuntu · 20.04 LTS 20.04:LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1
Ubuntu · 22.04 LTS 22.04:LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1

Vulnerabilities 5

  • Critical 9.8

    heap-over-flow in stun_parse_attribute in sofia-sip

    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. …

  • Critical 9.1

    Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

    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…

  • High 7.5

    Out-of-bounds Read in Sofia-SIP

    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, …

  • High 7.5

    Out-of-bounds Read in Sofia-SIP

    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 a crash. This type of crash may be caused by a URL ending with `%`. Version …

  • High 7.5

    An issue was discovered in the libsofia-sip fork in drachtio-server before 0.8.20. It allows remote attackers to cause …

References

  • report
    https://ubuntu.com/security/CVE-2022-31001
  • report
    https://ubuntu.com/security/CVE-2022-31002
  • report
    https://ubuntu.com/security/CVE-2022-31003
  • report
    https://ubuntu.com/security/CVE-2022-47516
  • report
    https://ubuntu.com/security/CVE-2023-22741