SB2024081227 - Privilege escalation in Asterisk
Published: August 12, 2024 Updated: December 3, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Permissions, Privileges, and Access Controls (CVE-ID: CVE-2024-42365)
The vulnerability allows a remote user to escalate privileges on the system.
The vulnerability exists due to improper access restrictions for users with "write=originate" role. A remote user can alter all configuration files in the `/etc/asterisk/` directory and use a set of built-in features, such as Set+File, Set+Curl, Reload+manager, Reload+pbx_config to overwrite files and escalate privileges on the system.
Remediation
Install update from vendor's website.
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-c4cg-9275-6w44
- https://github.com/asterisk/asterisk/commit/42a2f4ccfa2c7062a15063e765916b3332e34cc4
- https://github.com/asterisk/asterisk/commit/7a0090325bfa9d778a39ae5f7d0a98109e4651c8
- https://github.com/asterisk/asterisk/commit/b4063bf756272254b160b6d1bd6e9a3f8e16cc71
- https://github.com/asterisk/asterisk/commit/bbe68db10ab8a80c29db383e4dfe14f6eafaf993
- https://github.com/asterisk/asterisk/commit/faddd99f2b9408b524e5eb8a01589fe1fa282df2
- https://github.com/asterisk/asterisk/blob/14367caaf7241df1eceea7c45c5b261989c2c6db/main/manager.c#L6426
- https://github.com/asterisk/asterisk/blob/7d28165cb1b2d02d66e8693bd3fe23ee72fc55d8/main/manager.c#L6426