Skip to main content

luci-lib-px5g EUVDEUVD-2026-64273

| CVE-2026-62381 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-08-22 VulnCheck GHSA-g4fj-xr23-w9hm
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privileged local or LuCI access
  2. Delivery
    Invoke create_selfsigned() with 2040-bit RSA key
  3. Exploit
    asn1_add_obj miscalculates BIT STRING allocation
  4. Execution
    memcpy writes 1 byte past heap buffer
  5. Impact
    Heap corruption causes crash or enables memory manipulation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique 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 local access with low privileges (CVSS PR:L, AV:L) - specifically, the ability to invoke the create_selfsigned() function via luci-lib-px5g's exported Lua interface, either directly through a local Lua runtime or indirectly through a LuCI web interface feature that triggers certificate generation. The overflow is only triggered when the RSA key size produces a 255-byte signature (specifically a 2040-bit RSA key), as this is the boundary condition where the DER length encoding requires an extra octet that the allocation does not account for. Remote exploitation is NOT confirmed as a baseline condition - whether this is reachable from the network depends entirely on whether the embedding application exposes the certificate-generation interface externally. Limiting factors: the attacker must control or predict the key size used, must have local access or access to an exposed LuCI feature, and the one-byte overflow is a constrained primitive that limits reliable arbitrary code execution without heap grooming.

Impact

The provided CVSS 4.0 score of 6.9 with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N correctly captures the local-access, low-privilege attack surface. The high availability impact reflects that heap corruption from a one-byte overflow can reliably crash the certificate-signing process or, in adverse heap layouts, cause broader memory corruption. Confidentiality and integrity impacts are rated low, consistent with limited control over the written byte and typical heap overflow unpredictability. Critically, the CVSS local attack vector aligns with the description's explicit caveat that remote exploitability 'depends on the embedding application' - remote risk is conditional, not baseline. EPSS data is not available in the provided intelligence, and this CVE is absent from the CISA KEV catalog, indicating no confirmed mass or active exploitation. The absence of a patch (the package was removed rather than fixed) is a notable remediation signal: operators cannot simply upgrade to a patched luci-lib-px5g version on supported release branches. The one-byte overflow, while precise in its trigger, limits practical exploit reliability for arbitrary code execution without additional heap grooming, making this a real but bounded risk.

Exploit ScenarioDerived

A locally authenticated attacker with low-level access to an OpenWrt device - such as a non-root shell user with Lua runtime access or a web interface account permitted to generate certificates - invokes create_selfsigned() and supplies or triggers a 2040-bit RSA key, causing the ASN.1 encoder to overflow the heap buffer by one byte during signature encoding. In a worst-case heap layout, this overwrites a heap metadata field or adjacent allocation, potentially enabling a crash of the certificate service or, with targeted heap grooming, escalation to arbitrary code execution within the LuCI process context. No public proof-of-concept has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 22, 2026

Heap-based buffer overflow in luci-lib-px5g's native ASN.1 encoding routine allows a locally authenticated attacker to write one byte beyond a heap-allocated buffer during certificate signing, with a high availability impact and limited confidentiality and integrity exposure. The flaw is triggered specifically when signing with a 2040-bit RSA key via the exported Lua interface create_selfsigned(), where a DER length encoding miscalculation causes an allocation of 259 bytes for a payload requiring 260. Remote exploitability is not confirmed - it depends entirely on whether the embedding application exposes this interface externally. No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.

RemediationAI

No vendor-released patched version of luci-lib-px5g exists for the affected release branches - the upstream resolution was removal of the package from the master branch rather than a code fix. Operators on openwrt-18.06 through openwrt-25.12 should remove or disable the luci-lib-px5g package if it is not required for operation; note that removing it will disable any LuCI functionality that invokes create_selfsigned() for self-signed certificate generation, requiring an alternative certificate provisioning method (e.g., pre-generated certificates or an external CA). If the package cannot be removed, restrict access to the LuCI interface that exposes certificate generation to trusted administrative users only, reducing the attack surface to high-privilege local actors. Migrating to OpenWrt master (where the package is absent) is the definitive remediation. The security advisory is available at https://github.com/openwrt/luci/security/advisories/GHSA-jgc3-4q3p-g6xh and VulnCheck details at https://www.vulncheck.com/advisories/luci-lib-px5g-2040-bit-certificate-signing-heap-buffer-overflow.

Affected VersionsENISA

luci 0 ≤42d72f79cd8f057f241595abc761b39dab2d9f07

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable component is luci-lib-px5g, a Lua-accessible PKI library embedded in LuCI (the web interface for OpenWrt), implementing RSA key generation and X.509 certificate signing via a minimal mbedTLS-derived codebase. The root cause (CWE-122: Heap-Based Buffer Overflow) is an off-by-one error in the asn1_add_obj function within x509write.c. When encoding a BIT STRING for a 255-byte RSA signature, the DER length field for values 128-255 bytes requires a two-byte encoding (0x81 0xFF), but the allocation routine computes heap size from the inner length only. Combined with the mandatory unused-bits prefix byte, the final write requires 260 bytes (tag=1 + length=2 + unused-bits=1 + payload=255 + rounding=1) while only 259 bytes are allocated, causing the final memcpy to write one byte past the heap buffer. The flaw is surfaced through the Lua binding create_selfsigned() and is present across all OpenWrt release branches from openwrt-18.06 through openwrt-25.12, per CPE cpe:2.3:a:openwrt:luci:*:*:*:*:*:*:*:*.

Know when Luci 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 (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.6 MEDIUM

Local vector with low privileges since create_selfsigned() requires authenticated Lua or LuCI access; high availability reflects heap corruption crash potential; low C/I since one-byte overflow offers limited controlled impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

luci-lib-px5g (LuCI) contains a heap-based buffer overflow in the native ASN.1 encoding routine asn1_add_obj (x509write.c) when signing a certificate with a 2040-bit RSA key. For a 255-byte signature, the BIT STRING allocation is computed from the DER length encoding of 255 bytes, but the payload written after prepending the unused-bits byte is 256 bytes, requiring one additional DER length octet. As a result the allocation is 259 bytes while the tag, length, unused-bits byte, and signature require 260 bytes, and the final memcpy writes one byte beyond the heap buffer. The overflow is reachable through the exported Lua interface via create_selfsigned(); whether it is remotely exploitable depends on the embedding application. The vulnerable code is present on the openwrt-18.06 through openwrt-25.12 release branches and is absent from master, where the luci-lib-px5g package has been removed rather than patched.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular open-source router firmware, niche PKI sub-library
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Luci

View all
CVE-2026-61876 CRITICAL POC
9.4 Jul 12

Stored cross-site scripting in OpenWrt's LuCI web interface lets an adjacent-network attacker inject executable HTML/Jav

CVE-2019-12272 CRITICAL
9.8 May 23

In OpenWrt LuCI through 0.10, the endpoints admin/status/realtime/bandwidth_status and admin/status/realtime/wireless_st

CVE-2023-24181 MEDIUM POC
5.4 Apr 10

LuCI openwrt-22.03 branch git-22.361.69894-438c598 was discovered to contain a reflected cross-site scripting (XSS) vuln

CVE-2022-41435 MEDIUM POC
5.4 Nov 03

OpenWRT LuCI version git-22.140.66206-02913be was discovered to contain a stored cross-site scripting (XSS) vulnerabilit

CVE-2020-10871 MEDIUM POC
5.3 Mar 23

In OpenWrt LuCI git-20.x, remote unauthenticated attackers can retrieve the list of installed packages and services. Rat

CVE-2026-69096 HIGH
8.7 Aug 03

OS command injection in OpenWrt's luci-app-dockerman grants any authenticated user holding only the read ACL full root-l

CVE-2026-58000 HIGH
8.7 Jun 29

Root command injection in OpenWrt's LuCI web interface (luci-proto-openvpn through 0.11.1) lets an authenticated user wi

CVE-2026-55897 HIGH
8.8 Sep 21

Authenticated delegated LuCI sessions that hold the luci-app-advanced-reboot read ACL can execute arbitrary commands as

CVE-2026-59260 HIGH
8.7 Jul 12

Privilege escalation to root in OpenWrt's luci-app-samba4 (LuCI web interface) lets authenticated delegated users invoke

CVE-2026-69095 HIGH
8.7 Aug 03

Unauthenticated path traversal in OpenWrt's luci-app-bmx7 package exposes arbitrary files on affected routers via the bm

CVE-2026-62184 HIGH
8.7 Jul 13

Ban-list poisoning in OpenWrt's luci-app-banip (banIP) before 1.8.10 lets an unauthenticated remote attacker steer the a

CVE-2026-61875 HIGH
8.7 Jul 12

Stored cross-site scripting in OpenWrt's luci-app-upnp lets an unauthenticated LAN client persist a JavaScript payload t

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