CVE-2025-63261
Received Received - Intake
Command Injection in AWStats 8.0 via open Function

Publication date: 2026-03-20

Last updated on: 2026-04-07

Assigner: MITRE

Description
AWStats 8.0 is vulnerable to Command Injection via the open function
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-20
Last Modified
2026-04-07
Generated
2026-05-27
AI Q&A
2026-03-20
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
awstats awstats 7.9
debian debian_linux 11.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

[{'type': 'paragraph', 'content': "CVE-2025-63261 is a command injection vulnerability in AWStats version 8.0 that arises from unsafe usage of Perl's open function when handling DNS cache file names."}, {'type': 'paragraph', 'content': 'The vulnerability occurs because the AWStats Perl script reads DNS cache files based on configuration parameters without properly sanitizing input. An attacker who can modify the awstats.conf configuration file and create files with arbitrary names can inject shell commands by including pipe characters (|) in the DNS cache file name.'}, {'type': 'paragraph', 'content': 'When the AWStats web interface is accessed with specific parameters, the script attempts to open these maliciously named files, causing the embedded shell commands to execute, resulting in remote code execution.'}] [2]


How can this vulnerability impact me? :

This vulnerability can lead to remote code execution (RCE) on the affected system, allowing an attacker to execute arbitrary system commands.

An attacker with the ability to modify the AWStats configuration file and create files on the system can exploit this flaw to gain full control over the server.

  • Full system compromise including executing reverse shells.
  • Escaping restricted shells or jailed environments, such as jailshell in cPanel hosting.
  • Potential unauthorized access to sensitive data and further network penetration.

How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': 'This vulnerability can be detected by checking the AWStats configuration file (awstats.conf) for unsafe settings that enable command injection, such as the presence of pipe characters (|) in the DNSLastUpdateCacheFile parameter and DNSLookup set to 1.'}, {'type': 'paragraph', 'content': 'You can also monitor for suspicious file names containing shell metacharacters in the directory specified by DirData, as well as unusual web requests to the AWStats web interface with parameters like config=a and update=1 that trigger the vulnerable code path.'}, {'type': 'paragraph', 'content': 'Suggested commands to detect the vulnerability include:'}, {'type': 'list_item', 'content': "Search for suspicious pipe characters in the configuration file: grep -E '\\|.*\\|' /path/to/awstats.conf"}, {'type': 'list_item', 'content': "Check if DNSLookup is enabled: grep '^DNSLookup' /path/to/awstats.conf"}, {'type': 'list_item', 'content': "List files with pipe characters in the DirData directory: ls -l /path/to/awstats/DirData | grep '\\|'"}, {'type': 'list_item', 'content': "Monitor web server logs for requests to awstats.pl with update=1 parameter: grep 'awstats.pl.*update=1' /var/log/apache2/access.log"}] [2]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include:

  • Restrict write permissions to the awstats.conf configuration file to prevent unauthorized modifications.
  • Disable DNSLookup by setting DNSLookup=0 in awstats.conf to prevent the vulnerable code path from being triggered.
  • Avoid using pipe characters or other shell metacharacters in any configuration parameters or file names used by AWStats.
  • Restrict or monitor the directory specified by DirData to prevent creation of malicious files with crafted names.
  • Limit or disable AllowToUpdateStatsFromBrowser to prevent triggering updates via the web interface.

Additionally, consider updating AWStats to a version where this vulnerability is patched once available.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart