# CVE-2026-78497: JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval

- Severity: High 8.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-10-18T11:32:05.853Z
- Modified: 2026-10-20T19:18:15.957Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## Description

JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval.

The pattern given to test(), match(), or the match and =~ conditions of select() is placed in a `qr'...'` literal and compiled as source text, so a `(?{ ... })` code block in it runs without `use re 'eval'`. Single quotes in the pattern are escaped, but a code block runs in place and needs none.

An attacker who supplies a query, or text that an application inserts into the pattern of one, can execute arbitrary Perl code in the calling process.

(As written by CVE List.)

## Affected

- JQ-Lite: before 2.51

## References

- <https://github.com/kawamurashingo/JQ-Lite/commit/c461721ae3d5a90d6d94dbb234c1b8dfee5c1769.patch> (patch)
- <https://metacpan.org/release/SHINGO/JQ-Lite-2.51/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/10/18/3>

## Sources

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

---

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