Severity by source
CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Adjacent management network access plus an authenticated low-privileged LMS operator account are required; once reached, exec() injection yields full host compromise with no user interaction.
Primary rating from Vendor (CERT-PL).
CVSS VectorVendor: CERT-PL
Lifecycle Timeline
2DescriptionCVE.org
An OS Command Injection vulnerability exists in LMS (LAN Management System) before commit 9fcb4de due to an IP address parameter being passed to the "exec()" function without proper validation, allowing attackers to execute arbitrary operating system commands.
AnalysisAI
OS command injection in LMS (LAN Management System) before commit 9fcb4de allows authenticated adjacent attackers to execute arbitrary operating system commands by supplying a malicious IP address parameter that is passed unsanitized to exec(). The flaw was reported by CERT-PL and an upstream fix is available; no public exploit identified at time of analysis, and the CVSS 4.0 score of 8.6 reflects high impact on the vulnerable system with limited subsequent-system effect.
Technical ContextAI
LMS (chilek/lms) is an open-source PHP-based ISP/LAN management system used by network operators for subscriber, node, and network-device administration. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command) in the AJAX handlers modules/netdevxajax.inc.php (getFirstFreeAddress) and modules/nodexajax.inc.php (updateNodeLock), where a user-controlled $ip parameter was interpolated into a shell command string passed to PHP's exec() with no validation. The patch adds a check_ip($ip) guard alongside the existing empty($cmd) check, rejecting any value that is not a syntactically valid IP address before invoking the shell. The affected CPE is cpe:2.3:a:lms:lms:*:*:*:*:*:*:*:* covering all versions prior to commit 9fcb4de19b7d76394898dbc124252b86b07ac0ed.
RemediationAI
Upstream fix available (commit 9fcb4de); released patched version not independently confirmed - apply the upstream patch https://github.com/chilek/lms/commit/9fcb4de19b7d76394898dbc124252b86b07ac0ed or upgrade to any LMS build that includes it, which adds check_ip($ip) validation to getFirstFreeAddress() and updateNodeLock(). If patching is not immediately possible, restrict access to the LMS web interface to a trusted management VLAN (consistent with the AV:A vector), tightly review which operator accounts hold the privileges needed to call the netdev and node AJAX endpoints, and consider temporarily disabling network-device management features that invoke ping/exec helpers - the trade-off is loss of automated IP-availability checks and node-lock workflows. Monitor LMS audit logs and the web server's process tree for unexpected shell invocations originating from PHP. Cross-reference the CERT-PL advisory at https://cert.pl/posts/2026/06/CVE-2026-40455 for further guidance.
lms version <= LMS_011123 contains a Local File Disclosure vulnerability in File reading functionality in LMS module tha
Path traversal in Frappe Learning Management System (LMS) versions 2.50.0 and below allows authenticated users with cour
Error-based SQL injection in LMS (LAN Management System) before commit 4cb30a7 allows authenticated attackers to extract
Payment validation bypass in Frappe LMS 2.51.0 and earlier lets an authenticated user enroll in paid courses for free by
Reflected Cross-Site Scripting in the designthemes LMS WordPress theme (versions 9.7 and earlier) allows unauthenticated
Stored cross-site scripting (XSS) in Frappe Learning Management System versions 2.27.0 through 2.47.x allows unauthentic
Frappe Learning Management System versions prior to 2.46.0 allow authenticated students to modify their own quiz scores
An issue in Mirapolis LMS 4.6.XX allows authenticated users to exploit an Insecure Direct Object Reference (IDOR) vulner
Reflected XSS in LAN Management System (LMS) before commit 9c5651b allows network-positioned attackers to inject arbitra
Metadata injection in Frappe LMS prior to version 2.53.0 enables authenticated users to embed crafted content into user-
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-37875
GHSA-765c-7qf8-cw9w