Vulnerability record · CVE-2009-2936 · published 5 April 2010
CVE-2009-2936: Varnish CLI lacks authentication, allowing remote command execution
VVarnish.Projects.Linpro · Varnish
The Varnish reverse proxy master process exposes its Command Line Interface over a TCP port without requiring authentication for received commands. An attacker who can reach that port can issue directives such as vcl.inline with inline C code, param.set, stop, start, and vcl.load. The vendor disputes the report, calling it fundamentally misguided and pointless, so the practical risk depends on whether the CLI port is exposed.
Description
The Command Line Interface (aka Server CLI or administration interface) in the master process in the reverse proxy server in Varnish before 2.1.0 does not require authentication for commands received through a TCP port, which allows remote attackers to (1) execute arbitrary code via a vcl.inline directive that provides a VCL configuration file containing inline C code; (2) change the ownership of the master process via param.set, stop, and start directives; (3) read the initial line of an arbitrary file via a vcl.load directive; or (4) conduct cross-site request forgery (CSRF) attacks that leverage a victim's location on a trusted network and improper input validation of directives. NOTE: the vendor disputes this report, saying that it is "fundamentally misguided and pointless.
AV:N/AC:L/Au:N/C:P/I:P/A:P
Automated analysis
high priorityThe flaw allows unauthenticated remote code execution and service control with a high EPSS score, though the vendor dispute and lack of KEV listing add uncertainty.
What it is
The Varnish reverse proxy master process exposes its Command Line Interface over a TCP port without requiring authentication for received commands. An attacker who can reach that port can issue directives such as vcl.inline with inline C code, param.set, stop, start, and vcl.load. The vendor disputes the report, calling it fundamentally misguided and pointless, so the practical risk depends on whether the CLI port is exposed.
Impact
An attacker gains the ability to execute arbitrary code in the Varnish master process, change process ownership, stop or start the service, and read the first line of arbitrary files. This can lead to full compromise of the proxy host and disruption of the caching service.
Attack surface
Reachable over the network via TCP to the Varnish CLI port, with no authentication required per the description and the AV:N/AC:L/Au:N vector. No user interaction is needed for the direct command-execution paths; the CSRF path requires a victim on a trusted network to be induced to send a request.
Exploitation
Not listed in CISA KEV and no ransomware associations are documented. EPSS is high at 0.63824 (99.183 percentile), but the reference tags are empty and provide no exploit-availability signal.
What to do
- Upgrade Varnish to 2.1.0 or later, which is the version boundary given in the description.
- Bind the CLI management interface to localhost or a dedicated management network and never expose it to untrusted networks.
- Restrict TCP access to the CLI port with host firewall rules or network ACLs, allowing only trusted administration hosts.
- Where the CLI must be remote, place it behind authenticated access controls or a management jump host.
- Review Varnish CLI configuration and deployment to confirm the management port is not reachable from general user networks.
Detection
- Monitor network connections to the Varnish CLI TCP port from unexpected or external source addresses.
- Alert on CLI directives such as vcl.inline, vcl.load, param.set, stop, and start appearing in logs or process activity from non-administrative sources.
- Audit Varnish master process ownership and configuration changes for unexplained modifications.
- Review host and network logs for file-read attempts or service restarts correlated with CLI port access.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2009-2936 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2009-2936), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.