CVE-2025-12120 Details
Description
Lite XL versions 2.1.8 and prior automatically execute the .lite_project.lua file when opening a project directory, without prompting the user for confirmation. The .lite_project.lua file is intended for project-specific configuration but can contain executable Lua logic. This behavior could allow execution of untrusted Lua code if a user opens a malicious project, potentially leading to arbitrary code execution with the privileges of the Lite XL process.
A vulnerability in Lite XL text editor versions through 2.1.8 allows for arbitrary code execution. When a project directory is opened, the editor automatically executes the .lite_project.lua file without user confirmation. This file can contain executable Lua code, potentially leading to the execution of untrusted code with the same privileges as the Lite XL process. The vulnerability could be exploited by opening a malicious project.
Users should update to the latest version of Lite XL that includes the trust guard for project modules. This update ensures that untrusted projects cannot automatically execute Lua code. Instructions for updating can be found on the Lite XL GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lite-xl/lite-xl/pull/2164 | [email protected] | Issue TrackingPatch |
| https://kb.cert.org/vuls/id/579478 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lite-xl lite xl | <= 2.1.8 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Nov 20, 2025 | CVE Modified | CISA-ADP |
| Nov 20, 2025 | New CVE Received | [email protected] |