Appsecure logo

CVE-2021-36740: Medium Vulnerability in Varnish Cache

A medium-severity vulnerability in Varnish Cache allows request smuggling and VCL authorization bypass via a large Content-Length header. Organizations should address this issue in their patch cycle.

MEDIUMCVSS 6.5 · Published July 14, 2021

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2021-36740 is a medium-severity vulnerability affecting Varnish Cache when HTTP/2 is enabled. This vulnerability allows request smuggling and VCL authorization bypass through the manipulation of a large Content-Length header in POST requests. It impacts various versions of Varnish, specifically Varnish Enterprise 6.0.x before 6.0.8r3, as well as Varnish Cache 5.x and 6.x prior to 6.5.2, 6.6.x before 6.6.1, and 6.0 LTS before 6.0.8. Given the potential for exploitation, organizations must prioritize patching this vulnerability.

The vulnerability has a CVSS score of 6.5, indicating a medium severity level. This score reflects the risk of unauthorized access and data manipulation that could arise from the exploitation of this vulnerability. Organizations using affected versions are at risk, especially considering the ease of exploitation due to the low attack complexity and the absence of required privileges or user interaction.

Organizations should address this vulnerability in their priority patch cycle. The potential risk includes exposure to attack vectors that could lead to unauthorized access or data breaches. As the situation evolves, it is crucial for security teams to remain vigilant and responsive.

Currently, there is no known public exploit for this vulnerability, but the possibility of attack should not be underestimated. Security teams must ensure they are prepared to respond to any incidents that may arise from this vulnerability.

Vulnerability Details

The official CVE description states that Varnish Cache, with HTTP/2 enabled, allows request smuggling and VCL authorization bypass via a large Content-Length header for a POST request. This affects Varnish Enterprise versions 6.0.x prior to 6.0.8r3, and Varnish Cache versions 5.x and 6.x before 6.5.2, 6.6.x before 6.6.1, and 6.0 LTS before 6.0.8.

The CVSS score for this vulnerability is 6.5, classified under medium severity. The attack vector is network-based with low complexity, requiring no privileges or user interaction, and resulting in a low impact on confidentiality and integrity.

Technical Analysis

The root cause of this vulnerability is the handling of large Content-Length headers by Varnish Cache when HTTP/2 is enabled. Attackers can exploit this issue to bypass VCL authorization mechanisms, allowing unauthorized access to resources. The attack vector is network-based, making it accessible to potential attackers on the same network.

The attack complexity is low, as it does not require any special privileges or user interaction. Confidentiality and integrity impacts are rated as low, indicating that unauthorized data access and manipulation could occur without significantly affecting the service's availability.

Risk & Impact Analysis

The real-world deployment risk associated with CVE-2021-36740 is significant. Organizations using affected versions of Varnish Cache may face unauthorized access to sensitive data, leading to data breaches or manipulation of critical application logic.

The potential blast radius for this vulnerability is considerable, given the widespread use of Varnish Cache in various applications. The urgency for organizations to assess their exposure and implement mitigations is high, particularly as this vulnerability is categorized with a CVSS score of 6.5.

Organizations should prioritize patching this vulnerability immediately, as its exploitation could lead to significant security incidents.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The versions affected by this vulnerability include:

1. Varnish Enterprise 6.0.x before 6.0.8r3.

2. Varnish Cache 5.x and 6.x before 6.5.2.

3. Varnish Cache 6.6.x before 6.6.1.

4. Varnish Cache 6.0 LTS before 6.0.8.

Mitigation & Remediation

To mitigate this vulnerability, organizations should upgrade to the following versions:

1. Varnish Enterprise 6.0.8r3 or later.

2. Varnish Cache 6.5.2 or later.

3. Varnish Cache 6.6.1 or later.

4. Varnish Cache 6.0.8 or later for LTS versions.

Organizations should consider utilizing penetration testing services to validate the effectiveness of the remediation measures.

Detection Guidance

Monitoring logs for unusual activity related to request headers can help organizations detect potential exploitation attempts. Specific indicators to watch include:

1. Unexpected Content-Length values in POST requests.

2. Anomalies in request patterns that deviate from normal traffic.

3. Unauthenticated access attempts to protected resources.

AppSecure Threat Intelligence Insight

CVE-2021-36740 highlights the ongoing challenges faced by organizations in managing application security, particularly with components like Varnish Cache that are widely used in web architectures. The potential for request smuggling and authorization bypass represents a significant risk that can lead to severe consequences.

Security teams must adopt a proactive approach to vulnerability management, ensuring regular updates and patches are applied. This incident reinforces the importance of continuous security assessments, including application security assessments and penetration testing.

As organizations navigate the complex landscape of cybersecurity, understanding vulnerabilities like CVE-2021-36740 will be crucial in developing effective defense strategies. It is imperative to stay informed about emerging threats and adapt security postures accordingly.

For further insights and guidance on security practices, consider reviewing our resources on penetration testing methodology and the latest trends in vulnerability management.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.