Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSelf-register account (no invite)
-
DeliveryOpen HR Expense form
-
ExploitUpload PHP webshell as scan_file
-
InstallFile saved in public/file/Expense
-
C2Request uploaded PHP URL
-
ExecuteExecute code as web server user
-
ImpactFull server compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires that the application's open self-registration is enabled (default, no invite required) so the attacker can obtain an account, and that the HR Expense creation feature with the scan_file upload field is reachable - both true on a default installation of WebErpMesv2 <=1.19. The broken CheckUserRole middleware means even an account with no assigned role is not stopped. The only real limiting factors are that self-registration must not have been manually disabled and the web server must execute PHP from the public/file/Expense path (standard for a document-root upload folder); no user interaction, MFA, or elevated privileges are needed. |
| Impact | This is a genuine high-priority issue, not an inflated CVSS. The vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) is consistent with the source evidence: network-reachable upload endpoint, low complexity, and full confidentiality/integrity/availability loss from arbitrary code execution. The PR:N rating is corroborated by the description's 'open registration' and 'broken role middleware' chain, meaning the nominal authentication requirement is trivially and automatically satisfied. No EPSS score or SSVC decision data was provided, and the vulnerability is not in CISA KEV, with no POC referenced - so exploitation is currently theoretical-but-easy rather than observed in the wild. The main mitigating real-world factor is deployment footprint: this is a niche open-source ERP/MES, so widespread opportunistic exploitation is less likely than targeted attacks against known instances. |
| Exploit ScenarioDerived | An attacker opens the public registration page, creates an account without any invite, and - because the role-check middleware fails open - reaches the HR Expense form. They submit an expense with a malicious PHP webshell as the scan_file attachment, which is saved under public/file/Expense, then browse to that URL to execute commands as the web server user. No public POC is currently referenced, but the low-complexity, network-facing nature makes weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Remote code execution in WebErpMesv2 (SMEWebify) versions 1.19 and prior lets a self-registered user upload an arbitrary PHP file through the HR Expense 'scan_file' parameter, which the vulnerable HumanResourcesController wrote directly into the web-served public/file/Expense directory with no extension or MIME validation. Because registration is open (no invite) and the CheckUserRole middleware silently swallows RouteNotFoundException, the privilege barrier collapses into effectively unauthenticated RCE against a default install. There is no public exploit identified at time of analysis, but the GitHub Security Advisory (GHSA-chhq-7p67-2ff9) and fixing commit confirm the flaw and its exploitability.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the changes from commit 5c54862fa044b363fd2be03d586750e81afd6818 (or upgrade to any release built after it, once tagged) which stores uploads outside the web root with UUID names, enforces mimes/mimetypes validation limited to jpeg/jpg/png/gif/pdf at max 10 MB, and fixes the CheckUserRole middleware to abort(403) instead of swallowing the routing exception; see https://github.com/SMEWebify/WebErpMesv2/security/advisories/GHSA-chhq-7p67-2ff9. If you cannot patch immediately, disable open self-registration so accounts require an invite/admin approval (removes the unauthenticated pre-condition but blocks legitimate self-onboarding), and configure the web server to deny PHP execution under the public/file/Expense upload directory (e.g. remove handler mapping / add a location rule) which stops code execution but not file storage, and restrict or remove access to the HR Expense upload endpoint for untrusted users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WebErpMesv2 is a PHP/Laravel-based Resource Management and Manufacturing Execution System for industrial SMEs. The root cause maps to CWE-20 (Improper Input Validation): the expense upload handler accepted any uploaded file, built a filename as time().'_'.getClientOriginalName(), and moved it via move(public_path('file/Expense'), ...) - an attacker-controlled name and extension landing inside the document root, so an uploaded .php file is directly executable by the web server. The fix rewrites this to store files on Laravel's local disk outside the web root using a UUID filename plus guessed extension (Storage::disk('local')->putFileAs('expenses', ...)), serves them through a controlled route restricted to image/PDF extensions, and adds strict validation (mimes/mimetypes jpeg,png,gif,pdf, max:10240) in StoreUserExpenseRequest. A parallel authorization defect in CheckUserRole (unhandled RouteNotFoundException when setup.index was absent) is corrected to abort(403) so users with no assigned role can no longer slip through.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable upload with open self-registration and fail-open role middleware means no real privilege barrier (PR:N), low complexity, and arbitrary code execution yields full C/I/A loss.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
WebErpMesv2 is a Resource Management and Manufacturing execution system Web for industry. Versions 1.19 and prior allow any self-registered user to upload arbitrary PHP files through the HR Expense scan_file parameter, leading to Remote Code Execution. Combined with open registration (no invite required) and broken role middleware (CheckUserRole silently swallows RouteNotFoundException), this chain is effectively unauthenticated RCE against any default installation. The issue is patched in commit 5c54862fa044b363fd2be03d586750e81afd6818.
Articles & Coverage 1
Executive ViewAI
WebErpMesv2 (SMEWebify) versions 1.19 and earlier contain a critical remote code execution vulnerability allowing unauthenticated attackers to upload and execute arbitrary PHP code through the HR Expense module on systems with default configurations. Any user-including self-registered accounts without approval-can achieve complete server compromise, enabling data theft and operational takeover. Organizations must immediately contain exposure given the lack of available patches.
No vendor-released patch identified at time of analysis. Interim mitigations: disable user self-registration; restrict HR Expense module to authenticated administrative accounts only; implement WAF rules to block file uploads via the scan_file parameter; configure web server to prevent PHP script execution in the public/file/Expense directory; enable detailed logging on file upload operations; consider network segmentation to limit lateral movement if compromise occurs.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
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
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
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
EUVD-2026-57830
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB