CVE-2026-32304
published critical CVSS 3.1 · 9.8Locutus: RCE via unsanitized input in create_function()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| locutusjs | — | locutus< 3.0.14 | Affected | Not stated | GitHub_M |
| Red Hat | — | openshift-logging/elasticsearch6-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch-operator-bundleLogging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch-proxy-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/elasticsearch-rhel9-operatorLogging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/kibana6-rhel8Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-logging/logging-curator5-rhel9Logging Subsystem for Red Hat OpenShift | Affected | Not stated | redhat-SADP |
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.
A flaw was found in Locutus, a JavaScript library that provides standard library functions. The `create_function` function in Locutus passes user-supplied arguments and code directly to the JavaScript `Function` constructor without proper sanitization. This vulnerability allows a remote attacker to execute arbitrary code within the application, potentially leading to full system compromise or data manipulation.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| locutusjs | locutus | < 3.0.14 (affected) | GitHub_M · cna |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
| Red Hat | Logging Subsystem for Red Hat OpenShift | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
5- https://access.redhat.com/security/cve/CVE-2026-32304
- RHBZ#2447200 https://bugzilla.redhat.com/show_bug.cgi?id=2447200
- https://github.com/locutusjs/locutus/releases/tag/v3.0.14
- https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32304.json
Provider assertions
3GitHub_M · cna
Locutus: RCE via unsanitized input in create_function()
redhat-SADP · adp
locutusjs: Locutus: Arbitrary code execution via unsanitized parameters in create_function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 264e23bba792b02c1ca7ac7e2e5acc7d8db7d948fdd141eb8dd4090c7582d58b
- Ingested
- 23 Sep 2026, 09:10:00 UTC
- Source record
- Official CVE record