Skip to content
Memory corruption Advisory Advanced

(0Day) Squid Cache WCCP Protocol Use-After-Free Remote Code Execution Vulnerability

Squid Cache fails to validate that an object exists before operating on it while handling the WCCP protocol, leading to a use-after-free. A remote, unauthenticated attacker could exploit this to run code as the 'nobody' user.

Lyu Follow

Originally disclosed on Zero Day Initiative

Medium 5.6 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Squid Cache. Authentication is not required to exploit this vulnerability.

Lyu, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a use-after-free in the WCCP protocol handler, where an object is used after being freed because its existence is not checked first.

Impact

A remote attacker without credentials could execute arbitrary code in the context of the 'nobody' user; the advisory notes the only mitigation is to restrict interaction with the application.

What the attacker needed

Network access to the WCCP service; no authentication needed

The fix

No patch was available at disclosure; the vendor disputed validity, so the only suggested mitigation is restricting interaction with the application.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Squid is a caching proxy server. A use-after-free happens when a program frees a piece of memory but keeps using it, so an attacker can sometimes plant their own data there and take control. Here an unauthenticated network attacker could potentially run their own code on the server.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Lyu

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.