Linux Distros Unpatched Vulnerability : CVE-2026-33940

high Nessus Plugin ID 304164

Synopsis

The Linux/Unix host has one or more packages installed with a vulnerability that the vendor indicates will not be patched.

Description

The Linux/Unix host has one or more packages installed that are impacted by a vulnerability without a vendor supplied patch available.

- Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, a crafted object placed in the template context can bypass all conditional guards in `resolvePartial()` and cause `invokePartial()` to return `undefined`. The Handlebars runtime then treats the unresolved partial as a source that needs to be compiled, passing the crafted object to `env.compile()`. Because the object is a valid Handlebars AST containing injected code, the generated JavaScript executes arbitrary commands on the server. The attack requires the adversary to control a value that can be returned by a dynamic partial lookup. Version 4.7.9 fixes the issue. Some workarounds are available. First, use the runtime-only build (`require('handlebars/runtime')`). Without `compile()`, the fallback compilation path in `invokePartial` is unreachable. Second, sanitize context data before rendering: Ensure no value in the context is a non-primitive object that could be passed to a dynamic partial. Third, avoid dynamic partial lookups (`{{> (lookup ...)}}`) when context data is user-controlled.
(CVE-2026-33940)

Note that Nessus relies on the presence of the package as reported by the vendor.

Solution

There is no known solution at this time.

See Also

https://access.redhat.com/security/cve/cve-2026-33940

https://security-tracker.debian.org/tracker/CVE-2026-33940

Plugin Details

Severity: High

ID: 304164

File Name: unpatched_CVE_2026_33940.nasl

Version: 1.1

Type: local

Agent: unix

Family: Misc.

Published: 3/28/2026

Updated: 3/28/2026

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-33940

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.4

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:U/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:redhat:enterprise_linux:grafana-azure-monitor, p-cpe:/a:centos:centos:grafana-opentsdb, p-cpe:/a:centos:centos:grafana-cloudwatch, p-cpe:/a:centos:centos:firefox-x11, p-cpe:/a:redhat:enterprise_linux:389-ds-base-devel, p-cpe:/a:redhat:enterprise_linux:389-ds-base-legacy-tools, p-cpe:/a:redhat:enterprise_linux:grafana-postgres, p-cpe:/a:centos:centos:grafana-prometheus, cpe:/o:debian:debian_linux:12.0, p-cpe:/a:centos:centos:grafana-graphite, p-cpe:/a:redhat:enterprise_linux:grafana-elasticsearch, p-cpe:/a:redhat:enterprise_linux:389-ds-base-libs, p-cpe:/a:redhat:enterprise_linux:grafana-opentsdb, p-cpe:/a:redhat:enterprise_linux:grafana-prometheus, p-cpe:/a:redhat:enterprise_linux:mozjs60, cpe:/o:redhat:enterprise_linux:9, p-cpe:/a:centos:centos:389-ds-base-libs, p-cpe:/a:centos:centos:grafana-influxdb, p-cpe:/a:centos:centos:grafana-loki, p-cpe:/a:redhat:enterprise_linux:thunderbird, cpe:/o:centos:centos:8, p-cpe:/a:centos:centos:grafana-selinux, p-cpe:/a:centos:centos:mozjs60, p-cpe:/a:redhat:enterprise_linux:python3-lib389, p-cpe:/a:centos:centos:grafana-mysql, p-cpe:/a:redhat:enterprise_linux:389-ds-base-snmp, p-cpe:/a:redhat:enterprise_linux:grafana-mssql, p-cpe:/a:redhat:enterprise_linux:grafana-selinux, cpe:/o:redhat:enterprise_linux:8, cpe:/o:redhat:enterprise_linux:10, cpe:/o:debian:debian_linux:13.0, p-cpe:/a:centos:centos:grafana-azure-monitor, p-cpe:/a:centos:centos:389-ds-base-snmp, p-cpe:/a:redhat:enterprise_linux:grafana-loki, p-cpe:/a:redhat:enterprise_linux:grafana, p-cpe:/a:centos:centos:389-ds-base, p-cpe:/a:centos:centos:mozjs60-devel, p-cpe:/a:debian:debian_linux:node-handlebars, p-cpe:/a:centos:centos:cockpit-389-ds, p-cpe:/a:centos:centos:firefox, p-cpe:/a:redhat:enterprise_linux:grafana-graphite, p-cpe:/a:redhat:enterprise_linux:grafana-mysql, p-cpe:/a:redhat:enterprise_linux:389-ds-base, p-cpe:/a:redhat:enterprise_linux:cockpit-389-ds, p-cpe:/a:redhat:enterprise_linux:firefox-x11, p-cpe:/a:redhat:enterprise_linux:mozjs60-devel, cpe:/o:centos:centos:7, p-cpe:/a:centos:centos:grafana-stackdriver, cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:centos:centos:python3-lib389, p-cpe:/a:redhat:enterprise_linux:grafana-cloudwatch, p-cpe:/a:centos:centos:389-ds-base-legacy-tools, p-cpe:/a:centos:centos:thunderbird, p-cpe:/a:redhat:enterprise_linux:grafana-influxdb, cpe:/o:debian:debian_linux:14.0, p-cpe:/a:centos:centos:grafana-elasticsearch, p-cpe:/a:centos:centos:grafana-postgres, p-cpe:/a:centos:centos:grafana, p-cpe:/a:redhat:enterprise_linux:firefox, p-cpe:/a:centos:centos:389-ds-base-devel, p-cpe:/a:redhat:enterprise_linux:grafana-stackdriver, p-cpe:/a:centos:centos:grafana-mssql

Required KB Items: Host/local_checks_enabled, Host/cpu, global_settings/vendor_unpatched, Host/OS/identifier

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 3/27/2026

Reference Information

CVE: CVE-2026-33940