Heap-based buffer overflow in Sofia-SIP - CVE-2022-31003
Published: June 6, 2022 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the "sdp_parse" function. A remote attacker can send a specially crafted sdp message, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Debian Linux
Ubuntu
sofia-sip (Debian package)
sofia-sip-bin (Ubuntu package)
libsofia-sip-ua0 (Ubuntu package)
libsofia-sip-ua-glib3 (Ubuntu package)
net-libs/sofia-sip
How to mitigate CVE-2022-31003
sofia-sip (Debian package) - addressed in versions 1.12.11+20110422.1-2.1+deb10u1, 1.12.11+20110422.1-2.1+deb11u1
sofia-sip-bin (Ubuntu package) - addressed in versions Ubuntu Pro, 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, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1
libsofia-sip-ua0 (Ubuntu package) - addressed in versions Ubuntu Pro, 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, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1
libsofia-sip-ua-glib3 (Ubuntu package) - addressed in versions Ubuntu Pro, 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, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1
net-libs/sofia-sip - update to 1.13.8