Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
2DescriptionGitHub Advisory
Emlog is an open source website building system. In versions 2.6.2 and prior, a path traversal vulnerability exists in the emUnZip() function (include/lib/common.php:793). When extracting ZIP archives (plugin/template uploads, backup imports), the function calls $zip->extractTo($path) without sanitizing ZIP entry names. An authenticated admin can upload a crafted ZIP containing entries with ../ sequences to write arbitrary files to the server filesystem, including PHP webshells, achieving Remote Code Execution (RCE). At time of publication, there are no publicly available patches.
AnalysisAI
Path traversal in Emlog CMS 2.6.2 and earlier enables authenticated administrators to achieve remote code execution by uploading malicious ZIP archives containing directory traversal sequences. The emUnZip() function fails to sanitize entry paths during plugin/template uploads and backup imports, allowing arbitrary file writes including PHP webshells. CVSS 7.2 (High) with network attack vector and low complexity. No vendor-released patch identified at time of analysis; publicly available exploit code exists via GitHub Security Advisory GHSA-2jg8-rmhm-xv9m.
Technical ContextAI
The vulnerability resides in Emlog's emUnZip() function (include/lib/common.php:793), which implements ZIP archive extraction for administrative features including plugin installation, template uploads, and backup restoration. The function directly calls PHP's ZipArchive::extractTo($path) method without validating or sanitizing individual entry names within the archive. This is a classic CWE-22 (Path Traversal) vulnerability where relative path sequences like '../' in ZIP entry names are processed literally by the filesystem API. Affected product per CPE is cpe:2.3:a:emlog:emlog:*:*:*:*:*:*:*:* covering all versions through 2.6.2. PHP's native ZIP handling does not automatically prevent path traversal - developers must explicitly filter entry names before extraction. When combined with write permissions to webroot directories, this file write primitive becomes RCE by deploying executable PHP code.
RemediationAI
No vendor-released patch identified at time of analysis per GitHub advisory GHSA-2jg8-rmhm-xv9m published without accompanying fix version. Organizations must implement manual mitigations: (1) Modify include/lib/common.php emUnZip() function to validate ZIP entry names before extraction, rejecting entries containing directory traversal sequences like '../', absolute paths, or paths escaping the target directory. Reference implementation should use realpath() verification to ensure extracted files remain within intended boundary. (2) Implement strict file upload validation at application layer to reject ZIP archives containing suspicious entry names before reaching extraction logic. (3) Apply defense-in-depth by restricting filesystem write permissions for the web server process, limiting impact of arbitrary file write. (4) Audit administrative access controls and enable multi-factor authentication for admin accounts to reduce credential compromise risk. (5) Monitor GitHub repository https://github.com/emlog/emlog for future security updates and subscribe to advisory notifications. Consider migrating to actively maintained CMS platforms if vendor does not release timely patches.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-22 – Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today