PT-2026-25084 · Red Hat+4 · Logging Subsystem For Red Hat Openshift+1

·

CVE-2026-32304

·

Published

2026-03-12

·

Updated

2026-03-13

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Locutus versions prior to 3.0.14
Description Locutus is a JavaScript library that aims to bring standard libraries from other programming languages to JavaScript for educational purposes. The create function(args, code) function in versions prior to 3.0.14 passes both parameters directly to the Function constructor without any sanitization. This allows for arbitrary code execution. The issue resides in the src/php/funchand/create function.ts file, specifically at line 17, where new Function(...params, code) is used without input validation. An attacker who can control either argument to create function() can achieve full remote code execution (RCE). Approximately 597,000 weekly npm downloads are potentially affected. A proof-of-concept (PoC) demonstrates the ability to execute system commands using require("child process").execSync("id") through the vulnerable function. This issue is distinct from CVE-2026-29091, which involved call user func array using eval() in older versions.
Recommendations Update to Locutus version 3.0.14 or later. Remove the create function function. If removal is not possible, replace new Function() with a safe alternative.

Exploit

Fix

RCE

Code Injection

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-32304
GHSA-VH9H-29PQ-R5M8

Affected Products

Logging Subsystem For Red Hat Openshift
Locutus