Critical NULL Pointer Dereference in Squid HTTP Caching Proxy

squid Updated 02 Oct 2025

Summary

09/02/2018
N/A
Yes i
High
7.5

ALPINE-CVE-2018-1000027: The Squid Software Foundation Squid HTTP Caching Proxy version prior to version 4.0.23 contains a NULL Pointer Dereference vulnerability in HTTP Response X-Forwarded-For header processing that can result in Denial of Ser... Affects squid versions < 3.5.27-r2. Fixed in 3.5.27-r2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Squid is a widely used caching proxy for the web, supporting HTTP, HTTPS, FTP, and more. It is designed to improve web performance by caching frequently requested content and reducing bandwidth usage. However, certain versions of Squid prior to 4.0.23 are vulnerable to a NULL Pointer Dereference vulnerability, which can lead to Denial of Service (DoS) for all clients using the proxy.

Vulnerability Detail

The vulnerability arises from improper handling of the X-Forwarded-For HTTP response header. When a remote HTTP server responds with this header in certain types of requests, it can trigger a NULL Pointer Dereference, causing the Squid proxy to crash. This results in a Denial of Service, affecting all clients relying on the proxy for web access. The vulnerability has been assigned a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

3.5.27-r2

This is the first release that contains the fix.

sudo apk add --upgrade squid

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can disable the processing of the X-Forwarded-For header by configuring your Squid settings. However, this may impact the functionality of your proxy. It is recommended to apply the patch as soon as possible instead of relying on workarounds.

Conclusion

The NULL Pointer Dereference vulnerability in Squid HTTP Caching Proxy poses a significant risk, leading to potential Denial of Service for users. It is crucial to update to the latest version to mitigate this risk effectively. Utilizing tools like Vulert can further enhance your security posture by monitoring for vulnerabilities in real-time.

See every vulnerability recorded for squid →

Share this vulnerability

FAQ

The vulnerability can lead to a Denial of Service, causing the Squid proxy to crash and making it unavailable for all clients.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

All versions of Squid prior to 4.0.23 are affected by this vulnerability.

Yes, updating to version 4.0.23 or later of Squid will permanently fix the vulnerability.

Vulert monitors and alerts for open-source vulnerabilities in software using just a manifest file. It provides real-time alerts for vulnerabilities, helping developers maintain secure applications.

Related vulnerabilities

Recent vulnerabilities recorded for squid.

How To Fix

Minimum fixed version

3.5.27-r2

This is the first release that contains the fix.

sudo apk add --upgrade squid

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback