---
id: CVE-2026-72841
title: >-
  luci-app-openvpn fails to properly validate the instance_name2 parameter
  during file upload, allowing authenticated users to perform path traversal and
  write arbitrary files outside the intended directory
summary: >-
  luci-app-openvpn fails to properly validate the instance_name2 parameter
  during file upload, allowing authenticated users to perform path traversal and
  write arbitrary files outside the intended directory. Attackers can upload
  malicious …
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-73
vendor: openwrt
product: luci
affected:
  - luci < 24.10.7
  - luci >= 25.12.0 < 25.12.4
published: '2026-08-13'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T18:18:39.220'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72841'
references:
  - url: 'https://github.com/openwrt/luci/security/advisories/GHSA-jjcx-c284-2qv8'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/luci-app-openvpn-path-traversal-rce-via-instance-name2
    label: disclosure@vulncheck.com
  - url: 'https://github.com/openwrt/luci/security/advisories/GHSA-jjcx-c284-2qv8'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00616
epssPercentile: 0.49317
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-08-18T01:41:58.201865Z'
ingestedAt: '2026-09-09T21:22:45.534Z'
---

## Overview

luci-app-openvpn fails to properly validate the instance_name2 parameter during file upload, allowing authenticated users to perform path traversal and write arbitrary files outside the intended directory. Attackers can upload malicious payloads to gain persistent root code execution by placing SSH keys in system directories accessible on reboot.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
