CPANSA-JQ-Lite-2026-78497: JQ-Lite vulnerability

Publisher giterlizzi Document category csaf_security_advisory
Initial release date 2026-10-18T00:00:00 Engine CSAF Perl Toolkit 0.26
Current release date 2026-10-18T00:00:00 Build Date
Current version 1 Status final
CVSS v3.1 Base Score 8.4 Severity High
Original language Language en
Also referred to

Vulnerability 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.

Vulnerabilities

CVE-2026-78497

Vulnerability 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.

Weakness CWE-95 : Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Product status

Known affected
Product Score
JQ-Lite less than 2.51
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 8.4 High
Fixed

giterlizzi

Namespace: https://github.com/giterlizzi/

gdt@cpan.org

References

Revision history

Version Date of the revision Summary of the revision
1 Sun Oct 18 00:00:00 2026 First release

Sharing rules

TLP:WHITE
For the TLP version see: https://www.first.org/tlp/