# CVE-2026-62381: luci-lib-px5g 2040-bit Certificate Signing Heap Buffer Overflow

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-22T12:26:44.558Z
- Modified: 2026-10-12T16:10:00.220Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- luci-lib-px5g: up to 42d72f79cd8f057f241595abc761b39dab2d9f07

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H`

## References

- <https://github.com/openwrt/luci/security/advisories/GHSA-jgc3-4q3p-g6xh> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/luci-lib-px5g-2040-bit-certificate-signing-heap-buffer-overflow> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-62381](https://www.cve.org/CVERecord?id=CVE-2026-62381), CVE Terms of Use, modified 2026-08-24
- NVD: [CVE-2026-62381](https://nvd.nist.gov/vuln/detail/CVE-2026-62381), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-62381 · Whole record: https://cve.day/CVE-2026-62381.json · Rebuilt by cve.day 2026-11-25T22:59:34.868Z
