The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-57520

CVE-2024-57520: Sangoma Asterisk RCE Vulnerability

CVE-2024-57520 is a remote code execution flaw in Sangoma Asterisk v22 affecting the action_createconfig function. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: April 15, 2026

CVE-2024-57520 Overview

CVE-2024-57520 is an Insecure Permissions vulnerability in Sangoma Asterisk v22 that allows a remote attacker to execute arbitrary code via the action_createconfig function. This vulnerability enables directory traversal attacks where an authenticated attacker can create empty files outside of the Asterisk product directory.

Important Note: This CVE is disputed by the vendor. Sangoma contends that the impact is limited to creating empty files outside of the Asterisk product directory (directory traversal) and that the attack can only be performed by a privileged user who already has the ability to manage the configuration.

Critical Impact

Remote attackers with configuration management privileges can exploit the action_createconfig function to perform directory traversal and create files outside intended directories, potentially leading to further system compromise.

Affected Products

  • Sangoma Asterisk v22
  • Sangoma Asterisk (all versions potentially affected based on CPE data)

Discovery Timeline

  • 2025-02-05 - CVE-2024-57520 published to NVD
  • 2025-11-06 - Last updated in NVD database

Technical Details for CVE-2024-57520

Vulnerability Analysis

This vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The flaw resides in the action_createconfig function within Asterisk's Asterisk Manager Interface (AMI). This function, designed to allow authorized administrators to create configuration files, lacks proper validation of file paths provided by users.

The core issue stems from insufficient input sanitization that allows directory traversal sequences to be processed. When exploited, an authenticated attacker with configuration management privileges can specify paths containing traversal sequences (such as ../) to write files outside the intended Asterisk configuration directory. While the vendor disputes the severity, noting that only empty files can be created and the attack requires privileged access, the ability to write files to arbitrary locations on the filesystem could potentially be chained with other vulnerabilities for more severe impact.

Root Cause

The root cause of CVE-2024-57520 is improper permission assignment and insufficient path validation in the action_createconfig function. The function does not adequately sanitize or validate user-supplied file paths before processing file creation operations. This allows directory traversal sequences to bypass intended directory restrictions, enabling file creation outside the Asterisk product directory.

Attack Vector

The attack vector for CVE-2024-57520 is network-based. An attacker must first authenticate to the Asterisk Manager Interface (AMI) with credentials that have configuration management privileges. Once authenticated, the attacker can send specially crafted requests to the action_createconfig function containing directory traversal sequences in the filename parameter.

The exploitation flow involves:

  1. Authenticating to AMI with appropriate privileges
  2. Sending a CreateConfig action with a malicious filename containing traversal sequences
  3. The function processes the path without proper validation
  4. An empty file is created at the attacker-specified location outside the intended directory

Technical details and proof-of-concept information can be found at the GitHub Gist Code Snippet and the GitHub Asterisk Issue #1122.

Detection Methods for CVE-2024-57520

Indicators of Compromise

  • Unexpected empty files appearing in directories outside the Asterisk configuration path
  • AMI logs showing CreateConfig actions with unusual filename patterns containing ../ sequences
  • Filesystem audit logs indicating file creation in sensitive directories by the Asterisk process
  • Abnormal authentication patterns to the Asterisk Manager Interface

Detection Strategies

  • Monitor AMI command logs for action_createconfig calls with filenames containing directory traversal patterns such as ../, ..\\, or absolute paths
  • Implement file integrity monitoring (FIM) on critical system directories to detect unexpected file creation
  • Configure network monitoring to alert on unusual AMI traffic patterns from untrusted sources
  • Review Asterisk access logs for authentication attempts and configuration management actions

Monitoring Recommendations

  • Enable comprehensive AMI logging and forward logs to a SIEM platform for analysis
  • Implement real-time alerting for any CreateConfig actions with paths outside expected directories
  • Monitor the Asterisk process for file operations outside its normal working directories using endpoint detection tools
  • Establish baseline behavior for AMI administrative actions to detect anomalies

How to Mitigate CVE-2024-57520

Immediate Actions Required

  • Review and restrict AMI user permissions to only those users who absolutely require configuration management capabilities
  • Implement network-level access controls to limit AMI access to trusted IP addresses only
  • Audit existing AMI user accounts and remove or disable any unnecessary privileged accounts
  • Enable TLS encryption for AMI connections to prevent credential interception

Patch Information

As of the last update, no official patch has been released by Sangoma addressing this specific vulnerability. The vendor has disputed the severity of this CVE, noting that exploitation requires privileged access and only results in empty file creation. Organizations should monitor the GitHub Asterisk Issue #1122 for updates on the vendor's response and any forthcoming patches.

Workarounds

  • Restrict AMI access using permit and deny directives in manager.conf to allow connections only from trusted management hosts
  • Disable the CreateConfig action for users who do not require it by adjusting AMI user permissions
  • Implement a reverse proxy or firewall rules to filter AMI requests containing suspicious path patterns
  • Consider running Asterisk in a containerized environment to limit the impact of filesystem access
bash
# Example manager.conf hardening configuration
[admin]
secret = strongpassword
deny = 0.0.0.0/0.0.0.0
permit = 192.168.1.100/255.255.255.255
read = system,call,log
write = system,call
writetimeout = 5000

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSangoma Asterisk

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-732
  • Technical References
  • GitHub Gist Code Snippet

  • GitHub Asterisk Issue #1122
  • Related CVEs
  • CVE-2025-57767: Sangoma Asterisk Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English