Skip to main content

WebErpMesv2 CVE-2026-49827

| EUVDEUVD-2026-57830 CRITICAL
Improper Input Validation (CWE-20)
2026-08-13 security-advisories@github.com
9.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Self-register account (no invite)
  2. Delivery
    Open HR Expense form
  3. Exploit
    Upload PHP webshell as scan_file
  4. Install
    File saved in public/file/Expense
  5. C2
    Request uploaded PHP URL
  6. Execute
    Execute code as web server user
  7. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

WebErpMesv2 ≤ 1.19

Affected Packages

euvd weberpmesv2 no fix

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

Vendor (github) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
niche open-source industrial ERP/MES, small deployment footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy