# LMS (Lan Management System) vulnerabilities: CVE-2026-127142, CVE-2026-127143, CVE-2026-129961 (file upload to RCE, lmsd library loading)

> CERT Polska disclosed three vulnerabilities in LMS (LAN Management System). CVE-2026-127142 and CVE-2026-129961 are unrestricted file uploads (.htaccess plus PHP) leading to code execution with web server privileges; CVE-2026-129961 is exploitable by an unauthenticated remote attacker via e-mail Helpdesk ticket intake. CVE-2026-127143 lets the lmsd daemon load attacker-registered libraries, and lmsd can run as root under the example systemd unit.

- **Published:** 2026-11-18T13:42:17Z
- **Last reviewed:** 2026-11-18T13:42:17Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6341
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6341.png
- **ID:** TL-2026-6341
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 8
- **CVEs:** CVE-2026-127142, CVE-2026-127143, CVE-2026-129961, CVE-2026-40455

## Description

On 18 November 2026 CERT Polska published a coordinated-disclosure advisory covering three vulnerabilities in LMS (LAN Management System), a PHP/Perl/C suite used by ISP-style network operators for customer records, network inventory, billing, helpdesk tickets and generation of network configuration. The issues were reported by Robert Jaroszuk of Nordasys. The advisory does not state CVSS scores, in-the-wild exploitation, IOCs or attribution, and does not give step-by-step exploitation details; the HIGH severity on this record is an analyst assessment based on the unauthenticated remote code execution impact of CVE-2026-129961.

CVE-2026-127142 (CWE-434, affects all versions before commit 89dd3f7): the service ticket feature of the client panel does not verify the type or name of attached files. An authenticated attacker uploads an .htaccess file that overrides the access restrictions on the upload storage directory, together with a PHP script. Requesting the PHP file's URL executes the attacker's code with the web server's privileges.

CVE-2026-129961 (CWE-434, affects all versions before commit d5059b1): the e-mail Helpdesk ticket intake does not reject Apache .htaccess files or PHP-executable files when saving ticket attachments. A remote, unauthenticated attacker sends an e-mail ticket with a malicious attachment; in the default configuration anyone can request the saved file's URL and run attacker code with web server privileges. No operator interaction or LMS client session is required, making this the most severe of the three.

CVE-2026-127143 (CWE-829, affects all versions before commit 89dd3f7): the lmsd daemon loads libraries listed in the LMS database without verifying they come from a trusted location. An attacker with access to the web server process, or with write access to the LMS database (for example after exploiting one of the upload flaws), can register a malicious library and trigger a configuration reload, causing lmsd to load and execute it. Because the example systemd unit does not set a separate user, lmsd runs as root, so the code runs with root privileges. Chaining this with the upload flaws is an analyst inference: it would give a path from remote unauthenticated e-mail to root. The fix removes the lmsd component; for existing installations that use lmsd, CERT Polska recommends disabling and removing it.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1059 Command and Scripting Interpreter
- T1505.003 Server Software Component: Web Shell
- T1574 Hijack Execution Flow
- T1574 Hijack Execution Flow

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**LMS CVE-2026-129961 / CVE-2026-127142 - HTTP Request to PHP or .htaccess in Ticket Attachment Storage** (`TL-2026-6341-SPL-001`)

TL-2026-6341: Detects web requests that fetch a PHP script (or .htaccess) from LMS helpdesk/ticket attachment storage. After the unrestricted upload in CVE-2026-129961 (unauthenticated e-mail Helpdesk intake) or CVE-2026-127142 (authenticated client panel ticket upload), the attacker triggers code execution with web server privileges by requesting the uploaded PHP file URL. Attachment storage should never be served as executable script, so any match is high-signal.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1505.003
- **Data sources:** apache access logs (index=web, sourcetype=access_combined / apache:access), WAF or reverse proxy CommonSecurityLog, webserver logsource
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=web sourcetype IN ("access_combined","apache:access") earliest=-24h
| eval src_ip=coalesce(src, clientip), uri_path=coalesce(uri_path, uri), user_agent=coalesce(http_user_agent, useragent), dest=coalesce(dest, host)
| where match(uri_path, "(?i)/(helpdesk|tickets?|rtattach|attachments?|storage|documents?)/") AND match(uri_path, "(?i)(\.(php[0-9]?|phtml|phar|pht)|/\.htaccess)$")
| stats count AS requests min(_time) AS first_seen max(_time) AS last_seen values(status) AS http_status values(uri_path) AS uri_paths values(user_agent) AS user_agents BY src_ip, dest
| eval outcome=if(mvfind(http_status, "^2")>=0, "served_or_executed", "blocked_or_error")
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestURL matches regex @"(?i)/(helpdesk|tickets?|rtattach|attachments?|storage|documents?)/"
| where RequestURL matches regex @"(?i)(\.(php[0-9]?|phtml|phar|pht)|/\.htaccess)(\?|$)"
| summarize Requests=count(), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), Urls=make_set(RequestURL, 20), Actions=make_set(DeviceAction, 5) by SourceIP, DestinationHostName, RequestMethod
| project FirstSeen, LastSeen, SourceIP, DestinationHostName, RequestMethod, Requests, Urls, Actions
```

### Sigma

```yaml
title: LMS Ticket Attachment Storage Serving PHP or .htaccess (CVE-2026-129961, CVE-2026-127142)
id: 6f1d3a52-8c4b-4e7a-9b21-3d5e7a1c0f01
status: experimental
description: Detects HTTP requests for PHP scripts or .htaccess files inside LMS helpdesk/ticket attachment storage, the execution trigger after the unrestricted file upload flaws CVE-2026-129961 and CVE-2026-127142.
references:
    - https://cert.pl/en/posts/2026/11/CVE-2026-127142/
author: Threadlinqs Team
date: 2026-11-18
tags:
    - attack.initial-access
    - attack.t1190
    - attack.persistence
    - attack.t1505.003
    - cve.2026.127142
    - cve.2026.129961
logsource:
    category: webserver
detection:
    selection_dir:
        cs-uri-stem|contains:
            - '/helpdesk/'
            - '/ticket/'
            - '/tickets/'
            - '/rtattach/'
            - '/attachment/'
            - '/attachments/'
            - '/storage/'
            - '/documents/'
    selection_ext:
        cs-uri-stem|endswith:
            - '.php'
            - '.php5'
            - '.phtml'
            - '.phar'
            - '.pht'
            - '/.htaccess'
    condition: selection_dir and selection_ext
falsepositives:
    - Legitimate PHP application files stored under a directory named storage or documents
    - Vulnerability scanners probing the attachment directory
level: high

```

**Known false positives:**

- Legitimate LMS PHP files that live under a path containing storage/ or documents/
- Authorised vulnerability scans or pentests probing the attachment directory

**Tuning notes:** Replace the directory regex with the real LMS attachment storage path of your deployment (check the LMS config for the helpdesk/ticket attachment dir; the keywords here are generic and unverified against your layout). Exclude scanner source IPs. Pivot on src_ip to the preceding e-mail intake or client panel ticket POST. A 2xx status means the file was served or executed; 403/404 means probing only.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- LMS CVE-2026-129961 / CVE-2026-127142 - PHP File Written to Ticket Attachment Storage (locked: unlock with TL Creds)
- LMS Web Server Process Running Download, Recon or Reverse-Shell Utilities (locked: unlock with TL Creds)
- lmsd Daemon Running as Root Spawning Shell or Utility (CVE-2026-127143) (locked: unlock with TL Creds)
- LMS CVE-2026-127142 - [indicator] Override Written to Ticket Attachment Storage (locked: unlock with TL Creds)
- LMS Web Server Process Writing PHP File Outside Cache Directories (Web Shell Drop) (locked: unlock with TL Creds)
- LMS Web Server Process Outbound Connection to Public IP on Non-Standard Port (C2 / Reverse Shell) (locked: unlock with TL Creds)
- LMS Web Server Process Spawning Shell (Post-Exploitation of Uploaded PHP) (locked: unlock with TL Creds)
- LMS Web Server Process Writing Shared Library (lmsd Library Hijack Staging, CVE-2026-127143) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [CERT Polska: Vulnerabilities in LMS software](https://cert.pl/en/posts/2026/11/CVE-2026-127142/)
- [CVE-2026-127142 record](https://www.cve.org/CVERecord?id=CVE-2026-127142)
- [CVE-2026-127143 record](https://www.cve.org/CVERecord?id=CVE-2026-127143)
- [CVE-2026-129961 record](https://www.cve.org/CVERecord?id=CVE-2026-129961)
- [CERT Polska coordinated vulnerability disclosure process](https://cert.pl/en/cvd/)
- [CERT Polska: earlier LMS advisory (CVE-2026-40455/40456/40457)](https://cert.pl/en/posts/2026/06/CVE-2026-40455/)
- [LMS source repository (chilek/lms)](https://github.com/chilek/lms)
- [CWE-434: Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)
- [CWE-829: Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6341
