CVE-2024-53566
NoneCVSS
—
EPSS
0.3%
Published
Dec 2, 2024
CISA due date
—
Cloudanix analysis
A flaw in phone system software lets remote attackers read files they should not be able to access, which could reveal sensitive operational 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
Path traversal flaw in action_listcategories() permits an attacker to supply crafted input that escapes the intended directory and accesses files outside the expected scope.
Why it matters to the business
Attackers may read sensitive configuration files, call detail records, or other system data, leading to information disclosure that could aid further attacks or expose customer communications metadata.
How an attack unfolds
An unauthenticated or low-privileged remote attacker sends a specially crafted request to the Asterisk HTTP interface invoking action_listcategories with directory traversal sequences; the server fails to sanitize the path and returns contents of arbitrary files on the filesystem.
How to fix it
Upgrade Sangoma Asterisk to a version that resolves the path traversal in action_listcategories; apply the corresponding fixed package versions for your distribution and restart the service.
How to confirm the fix worked
Confirm the running Asterisk version matches a fixed release, review source or binary for sanitized path handling in action_listcategories, and test with known-traversal payloads in a non-production instance.
Typical attack path
- Identify an exposed Asterisk HTTP manager or ARI endpoint
- Craft a request to action_listcategories containing ../ sequences targeting sensitive paths
- Observe successful file disclosure in the server response
- Use obtained data to escalate privileges or pivot within the telephony environment
How to detect it
Inspect Asterisk HTTP access logs and manager event logs for requests to action_listcategories containing path traversal characters such as .. or %2e%2e; correlate with file access timestamps on sensitive directories.
- action_listcategories.*\.\./
- GET.*action=listcategories.*path=.*\.\.
What your security team should do
- Apply the vendor-supplied update immediately given the public disclosure
- Restrict HTTP/ARI access to trusted networks only
- Enable verbose logging for manager and ARI actions to support detection
- Review file permissions on Asterisk configuration and spool directories
The record
An issue in the action_listcategories() function of Sangoma Asterisk v22/22.0.0/22.0.0-rc1/22.0.0-rc2/22.0.0-pre1 allows attackers to execute a path traversal.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.18 | asterisk | 0 | 18.24.3-r1 |
| Alpine:v3.19 | asterisk | 0 | 20.9.3-r1 |
| Alpine:v3.20 | asterisk | 0 | 20.9.3-r1 |
| Alpine:v3.21 | asterisk | 0 | 20.11.1-r0 |
| Alpine:v3.22 | asterisk | 0 | 20.11.1-r0 |
| Debian:11 | asterisk | 0 | No fix |
| Debian:11 | asterisk | 0 | 1:16.28.0~dfsg-0+deb11u6 |
| Ubuntu:18.04:LTS | asterisk | 0 | No fix |
| 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:25.04 | asterisk | 0 | No fix |
| Ubuntu:25.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-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-2022-24763 PJSIP is a free and open source multimedia communication library written in the C… Also affects asterisk
- CVE-2017-17850 An issue was discovered in Asterisk 13.18.4 and older, 14.7.4 and older, 15.1.4 and… 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