CVE-2026-30873

OpenWrt Project jsonpath: Memory leak when processing strings, labels, and regexp tokens

MEDIUM
4.9
CVSS Score
Published: March 19, 2026 at 10:01 PM UTC
Updated: June 17, 2026 at 10:33 AM UTC
1 product affected across 1 vendorOpenWRT

Using openwrt by openwrt?

Get instant alerts when new vulnerabilities affect openwrt - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.9
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 24.10.6v < 25.12.125.12.0 ≤ v < 25.12.1
Affected range stops below 24.10.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 25.12.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/openwrt/openwrt/security/advisories/GHSA-rcc6-v4r6-gj4m
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/openwrt/openwrt/releases/tag/v24.10.6
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/openwrt/openwrt/releases/tag/v25.12.1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card