Skip to content
Heist/ feed
Back to feed
CriticalFix available

sofia-sip — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-22741

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.

Products
sofia-sip
Affected versions
Not specified
Fixed versions
1.12.11+20110422.1+1e14eea~dfsg-4
CVEs
CVE-2023-22741
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:45 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-22741

core-osv · Original source

Published 19 Jan 2023, 22:15 UTC

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.

osv:DEBIAN-CVE-2023-22741

sofia-sip

Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-4

sofia-sip

Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-4

sofia-sip

Fixed versions: 1.12.11+20110422.1+1e14eea~dfsg-4

Complete source record
{
  "id": "49d4ecae41b237d58060f8ab8b8d8d3a69c232e038953fa4b1b23b257e6da5ed",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-22741",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-22741",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2023-22741",
    "products": [
      {
        "name": {
          "value": "sofia-sip",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.12.11+20110422.1+1e14eea~dfsg-4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sofia-sip",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.12.11+20110422.1+1e14eea~dfsg-4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sofia-sip",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.12.11+20110422.1+1e14eea~dfsg-4",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2023-22741",
      "aliases": [
        "DEBIAN-CVE-2023-22741"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.12.11+20110422.1+1e14eea~dfsg-4"
                }
              ]
            }
          ],
          "package": {
            "name": "sofia-sip",
            "purl": "pkg:deb/debian/sofia-sip?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-22741.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.12.11+20110422.1+1e14eea~dfsg-4"
                }
              ]
            }
          ],
          "package": {
            "name": "sofia-sip",
            "purl": "pkg:deb/debian/sofia-sip?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-22741.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.12.11+20110422.1+1e14eea~dfsg-4"
                }
              ]
            }
          ],
          "package": {
            "name": "sofia-sip",
            "purl": "pkg:deb/debian/sofia-sip?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-22741.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:01:36.023823369Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-22741"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-22741"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-22741",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 455589,
  "published_at": "2023-01-19T22:15:11.273+00:00"
}