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

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
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