{"id":"CVE-2026-30873","aliases":["CVE-2026-30873"],"related":[],"kind":"vulnerability","state":"published","title":"OpenWrt Project jsonpath: Memory leak when processing strings, labels, and regexp tokens","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"OpenWrt Project es un sistema operativo Linux dirigido a dispositivos embebidos. En versiones anteriores a ambas 24.10.6 y 25.12.1, la función jp_get_token, que realiza análisis léxico dividiendo las expresiones de entrada en tokens, contiene una vulnerabilidad de fuga de memoria al extraer literales de cadena, etiquetas de campo y expresiones regulares utilizando asignación dinámica de memoria. Estos resultados extraídos se almacenan en una estructura jp_opcode, que se copia posteriormente a un objeto jp_opcode recién asignado mediante jp_alloc_op. Durante esta transferencia, si una cadena fue previamente extraída y almacenada en el jp_opcode inicial, se copia a la nueva asignación pero la memoria original nunca se libera, resultando en una fuga de memoria. Este problema ha sido corregido en las versiones 24.10.6 y 25.12.1.","source":"nvd"}],"published":"2026-03-19T22:01:03.867Z","modified":"2026-06-17T10:33:04.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.4,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.4,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"version":">= 25.12.0-rc1, < 25.12.1","status":"affected"},{"version":"< 24.10.6","status":"affected"}],"vendor":"openwrt","product":"openwrt","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"24.10.6"},{"status":"affected","introduced":"25.12.0","fixed":"25.12.1"}],"vendor":"openwrt","product":"openwrt","cpe":"cpe:2.3:o:openwrt:openwrt:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openwrt/openwrt/security/advisories/GHSA-rcc6-v4r6-gj4m","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openwrt/openwrt/releases/tag/v24.10.6","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openwrt/openwrt/releases/tag/v25.12.1","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-21T03:25:41.581Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30873","url":"https://www.cve.org/CVERecord?id=CVE-2026-30873","licence":"CVE Terms of Use","modified":"2026-03-21T03:26:08.591Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30873","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30873","licence":"Public domain","modified":"2026-06-17T10:33:04.160Z"}],"updatedAt":"2026-11-25T22:59:16.199Z","epss":{"score":0.00554,"percentile":0.47619,"date":"2026-12-01T12:00:22.000Z"}}