CVE-2023-22741

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-22741
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-22741.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-22741
Aliases
  • GHSA-8599-x7rq-fr54
Related
Published
2023-01-19T22:15:11Z
Modified
2024-12-05T15:36:46.106101Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.11-r0

Affected versions

1.*

1.13.2-r0
1.13.3-r0
1.13.4-r0

Alpine:v3.15 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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

Alpine:v3.16 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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

Alpine:v3.17 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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-r0

Alpine:v3.18 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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-r0

Alpine:v3.19 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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-r0

Alpine:v3.20 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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-r0

Alpine:v3.21 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:apk/alpine/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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-r0

Debian:11 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:deb/debian/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12.11+20110422.1-2.1+deb11u1

Affected versions

1.*

1.12.11+20110422.1-2.1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:deb/debian/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12.11+20110422.1+1e14eea~dfsg-4

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / sofia-sip

Package

Name
sofia-sip
Purl
pkg:deb/debian/sofia-sip?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12.11+20110422.1+1e14eea~dfsg-4

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/freeswitch/sofia-sip

Affected ranges

Type
GIT
Repo
https://github.com/freeswitch/sofia-sip
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
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