Vulnerability · Published May 26, 2023 · Assigned by GitHub_M

CVE-2023-32307heap-over-flow and integer-overflow in sofia-sip

High 7.5

In plain English

A high-severity integer overflow in sofia-sip from freeswitch. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 35.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. Referring to [GHSA-8599-x7rq-fr54](https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8599-x7rq-fr54), several other potential heap-over-flow and integer-overflow in stun_parse_attr_error_code and stun_parse_attr_uint32 were found because the lack of attributes length check when Sofia-SIP handles STUN packets. The previous patch of [GHSA-8599-x7rq-fr54](https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8599-x7rq-fr54) fixed the vulnerability when attr_type did not match the enum value, but there are also vulnerabilities in the handling of other valid cases. The OOB read and integer-overflow made by attacker may lead to crash, high consumption of memory or even other more serious consequences. These issue have been addressed in version 1.13.15. Users are advised to upgrade.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12sofia-sip1.12.11+20110422.1+1e14eea~dfsg-6DEBIAN-CVE-2023-32307
Debian:13sofia-sip1.12.11+20110422.1+1e14eea~dfsg-6DEBIAN-CVE-2023-32307
Debian:14sofia-sip1.12.11+20110422.1+1e14eea~dfsg-6DEBIAN-CVE-2023-32307
Ubuntu:22.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.2USN-6448-1
Ubuntu:22.04:LTSsofia-sip1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.2UBUNTU-CVE-2023-32307

Affected products (as reported)

VendorProductVersions
freeswitch sofia-sip < 1.13.15

Weakness: CWE-190, CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References