Skip to content

Vulnerability in the ds_is_in_list() function

Moderate
liviuchircu published GHSA-pfm5-6vhv-3ff3 Mar 15, 2023

Package

opensips (OpenSIPS Core)

Affected versions

<= 3.1.8, <= 3.2.5

Patched versions

3.1.9, 3.2.6

Description

Impact

If ds_is_in_list() is used with an invalid IP address string (NULL is illegal input), OpenSIPS will attempt to print a string from a random address (stack garbage), which could lead to a crash. All users of ds_is_in_list() without the $si variable as 1st parameter could be affected by this vulnerability to a larger, lesser or no extent at all, depending if the data passed to the function is a valid IPv4 or IPv6 address string or not.

Patches

Fixed in e2f13d374 and backported down to 3.1 branch. The fixes will be/are available starting with the 3.1.9 and 3.2.6 minor releases.

Workarounds

No

References

#2780

For more information

If you have any questions or comments about this advisory:

Credits

Many thanks to @Cossack9989 for finding and reporting this issue!

Severity

Moderate
5.9
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2023-28099

Weaknesses

No CWEs