{"id":"CVE-2026-78497","state":"PUBLISHED","title":"JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval","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.\n\nThe 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.\n\nAn 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.","publishedAt":"2026-10-18T11:32:05.853Z","updatedAt":"2026-10-20T18:22:12.298Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["JQ-Lite"],"affected":[{"packageName":"JQ-Lite","packageURL":"pkg:cpan/JQ-Lite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.51","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["JQ::Lite"],"programFiles":["lib/JQ/Lite/Util/Transform.pm"],"programRoutines":[{"name":"JQ::Lite::Util::_build_regex"}],"repo":"https://github.com/kawamurashingo/JQ-Lite"}],"references":["https://github.com/kawamurashingo/JQ-Lite/commit/c461721ae3d5a90d6d94dbb234c1b8dfee5c1769.patch","https://metacpan.org/release/SHINGO/JQ-Lite-2.51/changes","http://www.openwall.com/lists/oss-security/2026/10/18/3"],"weaknesses":["CWE-95"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/78xxx/CVE-2026-78497.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-78497","state":"PUBLISHED","datePublished":"2026-10-18T11:32:05.853Z","dateUpdated":"2026-10-20T18:22:12.298Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-08-24T17:17:51.029Z"},"containers":{"cna":{"title":"JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval","descriptions":[{"lang":"en","value":"JQ::Lite versions before 2.51 for Perl execute Perl code embedded in a query's regular expression by compiling it with string eval.\n\nThe 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.\n\nAn 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."}],"affected":[{"packageName":"JQ-Lite","packageURL":"pkg:cpan/JQ-Lite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.51","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["JQ::Lite"],"programFiles":["lib/JQ/Lite/Util/Transform.pm"],"programRoutines":[{"name":"JQ::Lite::Util::_build_regex"}],"repo":"https://github.com/kawamurashingo/JQ-Lite"}],"references":[{"url":"https://github.com/kawamurashingo/JQ-Lite/commit/c461721ae3d5a90d6d94dbb234c1b8dfee5c1769.patch","tags":["patch"]},{"url":"https://metacpan.org/release/SHINGO/JQ-Lite-2.51/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-95","description":"CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-10-18T11:32:05.853Z"},"solutions":[{"lang":"en","value":"Upgrade to JQ-Lite 2.51 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/10/18/3"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-10-18T18:08:03.541Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.4,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-10-20T18:22:07.986736Z","id":"CVE-2026-78497","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-20T18:22:12.298Z"}}]}}}