← Back to search

CVE-2026-78497

8.4 HIGHpublic exploit available

Published 2026-10-18 · Updated 2026-10-20

AI risk analysis

Summary
JQ::Lite for Perl versions before 2.51 execute arbitrary Perl code via embedded code blocks in regex patterns used by test(), match(), and select() functions, due to unsafe use of string eval without the re 'eval' pragma, allowing untrusted input to trigger code execution.
Exploitability
Exploitation requires an attacker to control or influence the regex pattern passed to affected JQ::Lite functions; no authentication or user interaction is needed beyond supplying the malicious pattern.
Blast radius
Successful exploitation grants full Perl interpreter access in the target process, enabling complete compromise of confidentiality, integrity, and availability on the host system.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to JQ::Lite version 2.51 or later, which addresses the unsafe regex evaluation by properly escaping or rejecting code blocks in patterns.
rceperlregex-injectioneval-injection

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-95

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.