CVE-2026-32304 Locutus: RCE via unsanitized input in create_function()
CriticalCVSS 9.8
EPSS 0.65%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- Red Hat
Description
Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to 3.0.14, the create_function(args, code) function passes both parameters directly to the Function constructor without any sanitization, allowing arbitrary code execution. This is distinct from CVE-2026-29091 which was call_user_func_array using eval() in v2.x. This finding affects create_function using new Function() in v3.x. This vulnerability is fixed in 3.0.14.
Upgrade path
10 packages: 2 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat logging | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/kibana6-rhel8(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| locutus | < 3.0.14 | 3.0.14 | Fixed |
| npm locutus(npm) | < 3.0.14; <= 3.0.13 | 3.0.14 | Fixed |
| locutusjs locutus | = < 3.0.14 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| locutusjs locutus | = < 3.0.14 | No fix listed |
| redhat logging | All versions | No fix listed |
| npm locutus(npm) | <= 3.0.13 | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/kibana6-rhel8(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| locutus | < 3.0.14 | 3.0.14 |
| npm locutus(npm) | < 3.0.14 | 3.0.14 |
References
- https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8 exploit mitigation patch vendor-advisory
- https://github.com/locutusjs/locutus/releases/tag/v3.0.14 product release-notes
- Red Hat CVE page vdb-entry vendor-advisory
- RHBZ#2447200 issue-tracking
- security.access.redhat.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- www.cve.org
- github.com product