VulnarioBlogSquid vulnerabilities

Squid Vulnerabilities: The 10 Most Critical Squid Security Bugs (CVEs)

Squid vulnerabilities are security flaws in Squid that attackers can abuse to steal data, take over a server or interrupt a service. Squid is a caching and forward proxy server for the web. The National Vulnerability Database (NVD) lists 111 CVEs for Squid, 7 of them rated critical, and 5 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 10 most critical Squid security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Squid security basics, the current end-of-life dates and a free way to be told about the next Squid CVE as soon as it is published.

Key takeaways

  • No Squid CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 7 Squid CVEs are rated critical (CVSS v3), and 5 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2025-54574, published Aug 1, 2025.
  • Supported Squid releases today (per endoflife.date): 7. Releases not on the list are past their announced end of life.
  • You can monitor Squid for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Squid CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Squid CVEs at a glance

Most critical Squid vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2025-545749.8 Critical2025-08-01Heap buffer overflowNo
2CVE-2020-119459.8 Critical2020-04-23Integer overflowNo
3CVE-2019-125249.8 Critical2020-04-15Missing authenticationNo
4CVE-2019-125199.8 Critical2020-04-15Out-of-bounds writeNo
5CVE-2019-125269.8 Critical2019-11-26Out-of-bounds writeNo
6CVE-2019-125259.8 Critical2019-07-11Out-of-bounds writeNo
7CVE-2019-125239.1 Critical2019-11-26Critical security flawNo
8CVE-2020-150498.8 High2020-06-30HTTP request smugglingNo
9CVE-2019-125278.8 High2019-07-11Out-of-bounds writeNo
10CVE-2016-40518.8 High2016-04-25Memory buffer overflowNo

Each Squid CVE explained

1. CVE-2025-54574: Heap buffer overflow

  • CVSS 9.8 Critical
  • Published 2025-08-01
  • CWE-122
What NVD says
Squid is a caching proxy for the Web. In versions 6.3 and below, Squid is vulnerable to a heap buffer overflow and possible remote code execution attack when processing URN due to incorrect buffer management. This has been fixed in version 6.4. To work around this issue, disable URN access permissions.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.4
What to do
Upgrade to 6.4 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2025-54574 (opens in a new tab)

2. CVE-2020-11945: Integer overflow

  • CVSS 9.8 Critical
  • Published 2020-04-23
  • CWE-190
What NVD says
An issue was discovered in Squid before 5.0.2. A remote attacker can replay a sniffed Digest Authentication nonce to gain access to resources that are otherwise forbidden. This occurs because the attacker can overflow the nonce reference counter (a short integer). Remote code execution may occur if the pooled token credentials are freed (instead of replayed as valid credentials).
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.0 through 3.5.28; 4.0 to before 4.11; 5.0 to before 5.0.2
What to do
Upgrade to the fixed release for your branch (4.11, 5.0.2) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2020-11945 (opens in a new tab)

3. CVE-2019-12524: Missing authentication

  • CVSS 9.8 Critical
  • Published 2020-04-15
  • CWE-306
What NVD says
An issue was discovered in Squid through 4.7. When handling requests from users, Squid checks its rules to see if the request should be denied. Squid by default comes with rules to block access to the Cache Manager, which serves detailed server information meant for the maintainer. This rule is implemented via url_regex. The handler for url_regex rules URL decodes an incoming request.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 4.7
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2019-12524 (opens in a new tab)

4. CVE-2019-12519: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2020-04-15
  • CWE-787
What NVD says
An issue was discovered in Squid through 4.7. When handling the tag esi:when when ESI is enabled, Squid calls ESIExpression::Evaluate. This function uses a fixed stack buffer to hold the expression while it's being evaluated. When processing the expression, it could either evaluate the top of the stack, or add a new member to the stack.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.0 through 3.5.28; 4.0 through 4.10; 5.0 through 5.0.1
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2019-12519 (opens in a new tab)

5. CVE-2019-12526: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2019-11-26
  • CWE-787
What NVD says
An issue was discovered in Squid before 4.9. URN response handling in Squid suffers from a heap-based buffer overflow. When receiving data from a remote server in response to an URN request, Squid fails to ensure that the response can fit within the buffer. This leads to attacker controlled data overflowing in the heap.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.0 through 3.5.28; 4.0 through 4.8
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2019-12526 (opens in a new tab)

6. CVE-2019-12525: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2019-07-11
  • CWE-787
What NVD says
An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When Squid is configured to use Digest authentication, it parses the header Proxy-Authorization. It searches for certain tokens such as domain, uri, and qop. Squid checks if this token's value starts with a quote and ends with one. If so, it performs a memcpy of its length minus 2.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
3.3.9 through 3.5.28; 4.0 through 4.7
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2019-12525 (opens in a new tab)

7. CVE-2019-12523: Critical security flaw

  • CVSS 9.1 Critical
  • Published 2019-11-26
What NVD says
An issue was discovered in Squid before 4.9. When handling a URN request, a corresponding HTTP request is made. This HTTP request doesn't go through the access checks that incoming HTTP requests go through. This causes all access checks to be bypassed and allows access to restricted HTTP servers, e.g., an attacker can connect to HTTP servers that only listen on localhost.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality and integrity.
Affected versions
3.0 through 3.5.28; 4.0 through 4.8
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2019-12523 (opens in a new tab)

8. CVE-2020-15049: HTTP request smuggling

  • CVSS 8.8 High
  • Published 2020-06-30
  • CWE-444
What NVD says
An issue was discovered in http/ContentLengthInterpreter.cc in Squid before 4.12 and 5.x before 5.0.3. A Request Smuggling and Poisoning attack can succeed against the HTTP cache. The client sends an HTTP request with a Content-Length header containing "+\ "-" or an uncommon shell whitespace character prefix to the length field-value.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0 through 2.6; 3.1 through 3.5.28; 4.0 to before 4.12; 5.0 to before 5.0.3
What to do
Upgrade to the fixed release for your branch (4.12, 5.0.3) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2020-15049 (opens in a new tab)

9. CVE-2019-12527: Out-of-bounds write

  • CVSS 8.8 High
  • Published 2019-07-11
  • CWE-787
What NVD says
An issue was discovered in Squid 4.0.23 through 4.7. When checking Basic Authentication with HttpHeader::getAuth, Squid uses a global buffer to store the decoded data. Squid does not check that the decoded length isn't greater than the buffer, leading to a heap-based buffer overflow with user controlled data.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
4.0.23 through 4.7
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2019-12527 (opens in a new tab)

10. CVE-2016-4051: Memory buffer overflow

  • CVSS 8.8 High
  • Published 2016-04-25
  • CWE-119
What NVD says
Buffer overflow in cachemgr.cgi in Squid 2.x, 3.x before 3.5.17, and 4.x before 4.0.9 might allow remote attackers to cause a denial of service or execute arbitrary code by seeding manager reports with crafted data.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
2.0; 2.1; 2.2; 2.3
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-4051 (opens in a new tab)

Squid end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Squid vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Squid releases are 7.

Squid release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Squid 7Jul 10, 2025Not announced7.8Supported
Squid 6Jul 6, 2023Jul 10, 20256.14End of life
Squid 5Jul 31, 2021Jul 6, 20235.9End of life
Squid 4Jul 3, 2018Oct 4, 20214.17End of life
Squid 3.5Jan 13, 2015Aug 7, 20183.5.28End of life
Squid 3.4Dec 8, 2013Aug 1, 20153.4.14End of life
Squid 3.3Feb 9, 2013May 1, 20153.3.14End of life
Squid 3.2Aug 14, 2012May 1, 20153.2.14End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Squid is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

squid -v

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Squid security checklist

  1. Apply security releases quickly: web servers sit on the internet and are scanned constantly.
  2. Hide version banners and default pages so scanners learn less about you.
  3. Allow only modern TLS (1.2 and 1.3) and renew certificates automatically.
  4. Run worker processes as an unprivileged user and keep sites in separate accounts or pools.
  5. Set sensible request size and timeout limits, and add rate limiting or a web application firewall.
  6. Block access to configuration files, backups and version-control folders.

Where you run Squid matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Squid: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than Squid. A flaw anywhere in the chain can be the way in, so also review our guides to Nginx vulnerabilities, HAProxy vulnerabilities and Varnish vulnerabilities.

How to get alerted about new Squid vulnerabilities

NVD received 5 new Squid CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Squid and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Squid alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Squid vulnerabilities

What are the most critical Squid vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Squid CVEs include CVE-2025-54574 (CVSS 9.8), CVE-2020-11945 (CVSS 9.8), CVE-2019-12524 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have Squid vulnerabilities been exploited in real attacks?

For the Squid product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Squid patched.

How many vulnerabilities does Squid have?

As of Nov 3, 2026 the National Vulnerability Database lists 111 CVEs for Squid, with 7 rated critical by CVSS v3. 5 were published in the previous twelve months.

Which Squid versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Squid releases as supported: 7. Releases that are not listed are past their announced end of life.

How do I check which Squid version I run?

Run squid -v on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Squid CVE is published?

Add Squid to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Squid and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Squid secure?

Squid is as secure as its patch level. NVD published 5 new Squid CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2025-54574?

CVE-2025-54574 is a critical Squid vulnerability with a CVSS score of 9.8, published Aug 1, 2025. Squid is a caching proxy for the Web. In versions 6.3 and below, Squid is vulnerable to a heap buffer overflow and possible remote code execution attack when processing URN due to incorrect buffer management. This has been fixed in version 6.4.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.