CVE-2026-62381
Received Received - Intake

Heap-based Buffer Overflow in LuCI px5g

Vulnerability report for CVE-2026-62381, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-22

Last updated on: 2026-08-22

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-22
Last Modified
2026-08-22
Generated
2026-08-22
AI Q&A
2026-08-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
openwrt luci-lib-px5g From 18.06 (inc) to 25.13 (exc)
openwrt luci-lib-px5g From 18.06 (inc) to 25.12 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a heap-based buffer overflow in luci-lib-px5g (LuCI) when signing a certificate with a 2040-bit RSA key. The ASN.1 encoding routine miscalculates memory allocation for a BIT STRING, causing a one-byte overflow during memcpy. The flaw occurs in the asn1_add_obj function and is triggered via the Lua create_selfsigned() interface.

Detection Guidance

Detection requires checking for vulnerable OpenWrt versions running luci-lib-px5g. Use opkg list-installed | grep luci-lib-px5g to verify package presence. Enable AddressSanitizer during compilation to detect heap overflows. Monitor system logs for crashes during certificate signing operations.

Impact Analysis

The overflow may allow writing beyond allocated memory, potentially leading to arbitrary code execution or denial of service in the embedding application. Exploitability depends on the application using luci-lib-px5g. Systems running OpenWrt versions 18.06 through 25.12 are affected.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling unauthorized code execution or denial of service through heap overflow. Exploitation may lead to data breaches or system compromise, violating confidentiality and integrity requirements in these regulations.

Mitigation Strategies

Upgrade OpenWrt to master branch or remove luci-lib-px5g package entirely. If using affected branches (18.06-25.12), avoid generating 2040-bit RSA keys via LuCI. Apply patches if available from OpenWrt maintainers. Restrict Lua API access to trusted users only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62381. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart