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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | sofia-sip | 1.12.11+20110422.1+1e14eea~dfsg-6 | DEBIAN-CVE-2023-32307 |
| Debian:13 | sofia-sip | 1.12.11+20110422.1+1e14eea~dfsg-6 | DEBIAN-CVE-2023-32307 |
| Debian:14 | sofia-sip | 1.12.11+20110422.1+1e14eea~dfsg-6 | DEBIAN-CVE-2023-32307 |
| Ubuntu:22.04:LTS | sofia-sip | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.2 | USN-6448-1 |
| Ubuntu:22.04:LTS | sofia-sip | 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.2 | UBUNTU-CVE-2023-32307 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-rm4c-ccvf-ff9c x_refsource_CONFIRM
- https://lists.debian.org/debian-lts-announce/2023/06/msg00002.html
- https://www.debian.org/security/2023/dsa-5431
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OY66DOQ3B7GULJTI66X5HNX5FU3P65CX/