Skip to content
OpenAdvisories
Critical · 9.1 CVE-2022-31003 EUVD-2022-52710

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

Published May 31, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
freeswitch sofia-sip < 1.13.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 —
Debian 13 sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 —
Debian 12 sofia-sip 1.12.11+20110422.1+1e14eea~dfsg-3 —
Debian 11 sofia-sip 1.12.11+20110422.1-2.1+deb11u1 DSA-5410-1
Debian 10 sofia-sip 1.12.11+20110422.1-2.1+deb10u1 DLA-3091-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 USN-5932-1
Ubuntu 20.04 LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 USN-5932-1
Ubuntu 18.04 LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 USN-5932-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS sofia-sip 1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 USN-5932-1
ReleasePackageFixed inAdvisory
Alpine v3.24 sofia-sip 1.13.8-r0 —
Alpine v3.23 sofia-sip 1.13.8-r0 —
Alpine v3.22 sofia-sip 1.13.8-r0 —
Alpine v3.21 sofia-sip 1.13.8-r0 —
Alpine v3.20 sofia-sip 1.13.8-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 sofia-sip 1.13.8-r0 —
Alpine v3.18 sofia-sip 1.13.8-r0 —
Alpine v3.17 sofia-sip 1.13.8-r0 —
Alpine v3.16 sofia-sip 1.13.8-r0 —
Alpine v3.15 sofia-sip 1.13.8-r0 —
Alpine v3.14 sofia-sip 1.13.8-r0 —

Advisories 3

References