CVE-2024-49215
NoneCVSS
—
EPSS
—
Published
Oct 21, 2024
CISA due date
—
Cloudanix analysis
A flaw in telephony software lets attackers read files they are not supposed to see, which could reveal sensitive system information.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Network Service
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits path traversal in Asterisk Manager Interface functions action_getconfig() and action_getconfigJson() because input file paths are not sanitized, allowing access to arbitrary files on the filesystem even when restrictedFile() checks are present.
Why it matters to the business
Attackers could read sensitive configuration and system files, exposing operational details that aid further compromise and increasing the chance of service disruption or data leakage in telephony environments.
How an attack unfolds
An attacker with Manager Interface credentials supplies a crafted path containing traversal sequences such as ../../ to the getconfig or getconfigJson actions; the missing or bypassed path processing allows retrieval of files outside intended directories.
How to fix it
Upgrade Asterisk to the version containing commit 85601849c646709836f59007d04ca829ef0d5955 or later; for affected concrete5 installations upgrade to 8.5.19.
How to confirm the fix worked
Confirm the installed version matches a fixed release, then attempt a traversal path via the Manager Interface and verify that requests are rejected or sanitized.
Typical attack path
- Obtain valid credentials for the Asterisk Manager Interface
- Craft a request containing directory traversal sequences in the filename parameter
- Invoke action_getconfig or action_getconfigJson
- Receive contents of arbitrary files from the target filesystem
How to detect it
Inspect Asterisk manager logs for getconfig or getconfigJson actions that contain repeated dot-dot-slash sequences or references to sensitive paths such as /etc.
What your security team should do
- Apply the listed fixed versions immediately
- Restrict network access to the Manager Interface to trusted hosts only
- Review Manager Interface accounts and disable unused ones
The record
An issue was discovered in Sangoma Asterisk through 18.20.0, 19.x and 20.x through 20.5.0, and 21.x through 21.0.0, and Certified Asterisk through 18.9-cert5. In manager.c, the functions action_getconfig() and action_getconfigJson() do not process the input file path, resulting in a path traversal vulnerability. In versions without the restrictedFile() function, no processing is done on the input path. In versions with the restrictedFile() function, path traversal is not processed.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:20.04:LTS | asterisk | 0 | No fix |
| Ubuntu:22.04:LTS | asterisk | 0 | No fix |
| Ubuntu:24.04:LTS | asterisk | 0 | No fix |
| Ubuntu:24.10 | asterisk | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | asterisk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | asterisk | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | asterisk | 0 | No fix |
Related vulnerabilities
- CVE-2024-53566 An issue in the action_listcategories() function of Sangoma Asterisk… Also affects asterisk
- CVE-2024-42491 Asterisk is an open-source private branch exchange (PBX). Also affects asterisk
- CVE-2022-39269 PJSIP is a free and open source multimedia communication library written in C. Also affects asterisk
- CVE-2017-17664 A Remote Crash issue was discovered in Asterisk Open Source 13.x before 13.18.4, 14.x… Also affects asterisk
- CVE-2017-17090 An issue was discovered in chan_skinny.c in Asterisk Open Source 13.18.2 and older… Also affects asterisk
- CVE-2017-16671 A Buffer Overflow issue was discovered in Asterisk Open Source 13 before 13.18.1, 14… Also affects asterisk
- CVE-2017-14098 In the pjsip channel driver (res_pjsip) in Asterisk 13.x before 13.17.1 and 14.x before… Also affects asterisk
- CVE-2017-14100 In Asterisk 11.x before 11.25.2, 13.x before 13.17.1, and 14.x before 14.6.1 and… Also affects asterisk