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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.4, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-19 · Modified: 2026-03-21
- Record: https://cvemate.com/vulnerability/CVE-2026-30873 · JSON: https://cvemate.com/vulnerability/CVE-2026-30873/json

## Description

```text
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.
```

## Signals

- CVSS: 4.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.554%, percentile 47.681%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- openwrt openwrt: ≥ 25.12.0-rc1, \< 25.12.1 \| \< 24.10.6 \| ≥ 25.12.0, \< 25.12.1

## References

- <https://github.com/openwrt/openwrt/security/advisories/GHSA-rcc6-v4r6-gj4m>
- <https://github.com/openwrt/openwrt/releases/tag/v24.10.6>
- <https://github.com/openwrt/openwrt/releases/tag/v25.12.1>

---

Data as of 2026-12-05T05:02:54.305Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
