Cloudanix VulnDB

CVE-2017-8807

Critical · 9.1

CVSS

9.1

EPSS

4.1%

Published

Nov 16, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Varnish caching software can let outsiders see pieces of the server's internal memory, potentially exposing private data like passwords or session details.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Exposure
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw in vbf_stp_error allows a VFP_GetStorage buffer to exceed intended size when using -sfile Stevedore transient objects, resulting in out-of-bounds memory access that leaks sensitive process memory contents to remote clients.

Why it matters to the business

Organizations running affected Varnish versions risk exposure of internal memory contents such as session tokens, cached responses, or configuration data to unauthenticated remote attackers, increasing breach likelihood and compliance exposure; the issue affects widely deployed caching layers in web ecosystems with high downstream dependents.

How an attack unfolds

An attacker sends specially crafted HTTP requests that trigger the buffer sizing error during fetch processing with file-based stevedore storage; the oversized buffer returns adjacent memory regions containing sensitive data in the response, enabling information disclosure without authentication or user interaction.

How to fix it

Upgrade Varnish Cache to 4.1.9 or 5.2.1 or later; apply the specific commits 5024f60c3a51f537279977989b645e983a946e1a or 176f8a075a963ffbfa56f1c460c15f6a1a6af5a7; for WordPress and TYPO3 deployments update to versions incorporating 131440c1a5f0e1e2273f7c2fff2533b94c77c30d or 8.7.40 respectively; disable -sfile stevedore if immediate upgrade is impossible.

How to confirm the fix worked

Verify installed Varnish version against fixed releases; review cache configuration for -sfile usage; test with crafted requests to confirm absence of memory leakage in responses; monitor vendor changelogs for backports.

Typical attack path

  1. Identify publicly reachable Varnish instances via banner grabbing or traffic analysis
  2. Craft and send HTTP requests designed to exercise the fetch path with -sfile stevedore objects
  3. Receive oversized responses containing leaked process memory
  4. Parse leaked data for credentials, tokens, or other sensitive artifacts for further attacks

How to detect it

Review Varnish access and error logs for anomalous response sizes or repeated requests targeting fetch paths; inspect cache hit patterns for unexpected data volumes; correlate with network captures showing oversized responses from Varnish processes.

What your security team should do

  • Prioritize immediate upgrade of all Varnish instances to patched versions given the high CVSS and memory disclosure nature
  • Audit configurations to replace -sfile stevedore with safer storage backends where possible
  • Implement network segmentation and WAF rules to limit exposure of caching layers
  • Schedule periodic version scanning across the web infrastructure estate

The record

vbf_stp_error in bin/varnishd/cache/cache_fetch.c in Varnish HTTP Cache 4.1.x before 4.1.9 and 5.x before 5.2.1 allows remote attackers to obtain sensitive information from process memory because a VFP_GetStorage buffer is larger than intended in certain circumstances involving -sfile Stevedore transient objects.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 varnish 0 5.2.1-r0
Alpine:v3.11 varnish 0 5.2.1-r0
Alpine:v3.12 varnish 0 5.2.1-r0
Alpine:v3.13 varnish 0 5.2.1-r0
Alpine:v3.14 varnish 0 5.2.1-r0
Alpine:v3.15 varnish 0 5.2.1-r0
Alpine:v3.16 varnish 0 5.2.1-r0
Alpine:v3.17 varnish 0 5.2.1-r0
Alpine:v3.18 varnish 0 5.2.1-r0
Alpine:v3.19 varnish 0 5.2.1-r0
Alpine:v3.20 varnish 0 5.2.1-r0
Alpine:v3.21 varnish 0 5.2.1-r0
Alpine:v3.22 varnish 0 5.2.1-r0
Alpine:v3.3 varnish 0 4.1.9-r0
Alpine:v3.4 varnish 0 4.1.9-r0
Alpine:v3.5 varnish 0 4.1.9-r0
Alpine:v3.6 varnish 0 4.1.9-r0
Alpine:v3.7 varnish 0 5.2.1-r0
Alpine:v3.8 varnish 0 5.2.1-r0
Alpine:v3.9 varnish 0 5.2.1-r0
Debian:11 varnish 0 5.2.1-1
Debian:12 varnish 0 5.2.1-1
Debian:13 varnish 0 5.2.1-1
Debian:9 varnish 0 5.0.0-7+deb9u2
Mageia:6 varnish 0 5.0.0-3.2.mga6
Ubuntu:18.04:LTS varnish 0 5.2.1-1
Ubuntu:Pro:16.04:LTS varnish 0 4.1.1-1ubuntu0.2+esm1

Related vulnerabilities