Automated Threat Modeling

Squid Proxy CVE-2025-62168: Brief Summary of Critical Credential Disclosure Vulnerability

A brief summary of CVE-2025-62168, a critical vulnerability in Squid Proxy (prior to 7.2) that can expose HTTP authentication credentials through its error handling. Covers the technical details, affected versions, and references to advisories and fixes.

CVE Analysis

9 min read

ZeroPath CVE Analysis
ZeroPath CVE Analysis

2025-10-17

Squid Proxy CVE-2025-62168: Brief Summary of Critical Credential Disclosure Vulnerability
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

Introduction

Sensitive HTTP credentials can leak to attackers through a single misconfigured proxy error page. CVE-2025-62168 is a critical flaw in Squid Proxy that lets remote parties extract authentication credentials from error messages. It affects both forward and reverse proxy deployments at scale.

About Squid: Squid is a widely used open-source caching proxy for web acceleration, access control, and content filtering. Enterprises, ISPs, and cloud providers deploy it, and there are millions of active instances. Its flexibility and performance have made it a core part of the web infrastructure in many organizations.

Technical Information

CVE-2025-62168 is caused by Squid's failure to properly redact HTTP authentication credentials in its error handling routines. When Squid hits an error while processing a client's HTTP request, it generates an error page. The email_err_data directive is enabled by default in all affected versions, and when it is on, Squid embeds a mailto link in that error page. The link carries detailed debugging information about the failed request, including HTTP headers such as Authorization.

Squid does not sanitize or remove sensitive credentials from these headers before it includes them in the error page. Any remote client or script that can trigger an error condition can therefore view the error page and pull out the usernames, passwords, or bearer tokens used for authentication. This can happen even if Squid is not explicitly configured for HTTP authentication, because credentials may be present in proxied requests for other reasons, such as backend authentication in reverse proxy setups.

The root cause sits in the error page generation code path. Squid 7.2 fixes it by redacting sensitive headers before they are included in error content.

Configuration Example

The following directive in squid.conf controls the vulnerable behavior:

# Vulnerable default (prior to 7.2) email_err_data on

To mitigate, set:

email_err_data off

Affected Systems and Versions

  • All Squid versions prior to 7.2 are affected
    • 3.x up to and including 3.5.28
    • 4.x up to and including 4.17
    • 5.x up to and including 5.9
    • 6.x up to and including 6.14
    • 7.x up to and including 7.1
  • The vulnerability is present whether or not Squid is configured for HTTP authentication
  • Both forward and reverse proxy configurations are affected
  • Systems with email_err_data on (the default) are vulnerable

Vendor Security History

Squid has a history of information disclosure and denial-of-service vulnerabilities, often in protocol parsing and error handling. Recent advisories include issues in Edge Side Includes (ESI) processing and HTTP header parsing. The project publishes clear advisories and coordinates fixes for supported versions, though older branches may not receive backports. Because Squid is open source, patches for current releases generally arrive promptly.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization