# CVE-2026-30873: OpenWrt Project jsonpath: Memory leak when processing strings, labels, and regexp tokens

- Severity: Low 2.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:A/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:L/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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-03-19T22:01:03.867Z
- Modified: 2026-06-17T10:33:04.160Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OpenWrt Project is a Linux operating system targeting embedded devices. In versions prior to both 24.10.6 and 25.12.1, the jp_get_token function, which performs lexical analysis by breaking input expressions into tokens, contains a memory leak vulnerability when extracting string literals, field labels, and regular expressions using dynamic memory allocation. These extracted results are stored in a jp_opcode struct, which is later copied to a newly allocated jp_opcode object via jp_alloc_op. During this transfer, if a string was previously extracted and stored in the initial jp_opcode, it is copied to the new allocation but the original memory is never freed, resulting in a memory leak. This issue has been fixed in versions 24.10.6 and 25.12.1.

(As written by CVE List.)

## Affected

- openwrt openwrt: >= 25.12.0-rc1, < 25.12.1; < 24.10.6; before 24.10.6; from 25.12.0 before 25.12.1

## Every score

- GitHub_M: CVSS:4.0 2.4 Low `CVSS:4.0/AV:A/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/openwrt/openwrt/security/advisories/GHSA-rcc6-v4r6-gj4m> (vendor-advisory)
- <https://github.com/openwrt/openwrt/releases/tag/v24.10.6> (release-notes)
- <https://github.com/openwrt/openwrt/releases/tag/v25.12.1> (release-notes)

## Sources

- CVE List: [CVE-2026-30873](https://www.cve.org/CVERecord?id=CVE-2026-30873), CVE Terms of Use, modified 2026-03-21
- NVD: [CVE-2026-30873](https://nvd.nist.gov/vuln/detail/CVE-2026-30873), Public domain, modified 2026-06-17

---

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