CVE-2023-22741

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-22741
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-22741.json
Aliases
  • GHSA-8599-x7rq-fr54
Related
Published
2023-01-19T22:15:11Z
Modified
2023-11-29T10:01:23.054390Z
Details

Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. In affected versions Sofia-SIP lacks both message length and attributes length checks when it handles STUN packets, leading to controllable heap-over-flow. For example, in stunparseattribute(), after we get the attribute's type and length value, the length will be used directly to copy from the heap, regardless of the message's left size. Since network users control the overflowed length, and the data is written to heap chunks later, attackers may achieve remote code execution by heap grooming or other exploitation methods. The bug was introduced 16 years ago in sofia-sip 1.12.4 (plus some patches through 12/21/2006) to in tree libs with git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3774 d0543943-73ff-0310-b7d9-9358b9ac24b2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

References

Affected packages

Alpine:v3.14 / sofia-sip

Package

Name
sofia-sip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.13.11-r0

Alpine:v3.15 / sofia-sip

Package

Name
sofia-sip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.13.11-r0

Affected versions

1.*

1.13.2-r0
1.13.3-r0
1.13.4-r0
1.13.4-r1
1.13.4-r2
1.13.6-r2

Alpine:v3.16 / sofia-sip

Package

Name
sofia-sip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.13.11-r0

Affected versions

1.*

1.13.2-r0
1.13.3-r0
1.13.4-r0
1.13.4-r1
1.13.4-r2
1.13.6-r2
1.13.7-r2

Alpine:v3.17 / sofia-sip

Package

Name
sofia-sip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.13.11-r0

Affected versions

1.*

1.13.2-r0
1.13.3-r0
1.13.4-r0
1.13.4-r1
1.13.4-r2
1.13.6-r0
1.13.7-r0
1.13.8-r0
1.13.8-r1
1.13.9-r1

Alpine:v3.18 / sofia-sip

Package

Name
sofia-sip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.13.11-r0

Affected versions

1.*

1.13.2-r0
1.13.3-r0
1.13.4-r0
1.13.4-r1
1.13.4-r2
1.13.6-r0
1.13.7-r0
1.13.8-r0
1.13.8-r1
1.13.9-r1

Git / github.com/freeswitch/sofia-sip

Affected ranges

Type
GIT
Repo
https://github.com/freeswitch/sofia-sip
Events
Introduced
0The exact introduced commit is unknown
Fixed

Affected versions

v1.*

v1.13.10
v1.13.2
v1.13.3
v1.13.4
v1.13.5
v1.13.6
v1.13.7
v1.13.8