CVEfocus › CVE database › CVE-2022-31003

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

CVSS 9.1 CriticalEPSS 3.3% (higher than 89% of CVEs)Published 2022-05-31Updated 2025-04-22Assigner: GitHub_M

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.

CWE-122CWE-787

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1UBUNTU-CVE-2022-31003
Ubuntu 20.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1UBUNTU-CVE-2022-31003
Ubuntu 18.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3build0.18.04.1UBUNTU-CVE-2022-31003
Ubuntu 16.04sofia-sipFix pending1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-31003
Debian 14sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31003
Debian 13sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31003
Debian 12sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31003
Alpine Linux 3.24sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.23sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.22sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.21sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.20sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.19sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.18sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.17sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.16sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.15sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003
Alpine Linux 3.14sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31003

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.