Khalil Shreateh specializes in cybersecurity, particularly as a "white hat" hacker. He focuses on identifying and reporting security vulnerabilities in software and online platforms, with notable expertise in web application security. His most prominent work includes discovering a critical flaw in Facebook's system in 2013. Additionally, he develops free social media tools and browser extensions, contributing to digital security and user accessibility.

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

 

 

A Squid Heap Buffer Overflow is a critical security vulnerability A Squid Heap Buffer Overflow is a critical security vulnerability where the Squid proxy server attempts to write more data into a dynamically allocated memory buffer (on the heap) than it was designed to hold.

This typically occurs when processing specially crafted, oversized input from a client or another server, such as excessively long HTTP headers, URLs, or malformed chunked encoding data. If Squid's parsing routines lack sufficient bounds checking, the excess data overflows the intended buffer.

This overwrites adjacent memory, corrupting data structures or control flow information. The consequences range from denial-of-service (crashing the Squid process) to, in severe cases, arbitrary code execution, allowing an attacker to run malicious commands on the server. Patches address these by implementing robust input validation and safer memory handling.

# CVE-2025-54574-Squid-Heap-Buffer-Overflow
Vulnerability Found on Squid Proxy.
CVE-2025-54574 ? Critical Heap Buffer Overflow in Squid Proxy

This repository documents the discovery, analysis, and responsible disclosure process of CVE-2025-54574, a critical heap-based buffer overflow in Squid (<6.4) triggered during URN Trivial-HTTP response handling.

The vulnerability allowed an attacker-controlled server to cause out-of-bounds heap writes, memory corruption, and potential disclosure of up to 4KB of heap memory, including sensitive information.

? Severity: Critical (CVSS 9.3)
? Weakness: CWE-122
? Fixed in: Squid 6.4
? Discovered by: Guadalupe Colantonio (StarryNight)

? Contents

/analysis/ ? Technical explanation and memory analysis

/poc/ ? Safe reproduction steps

/logs/ ? Sanitized ASan & Valgrind outputs

README.md ? Advisory summary

? Summary of the Vulnerability

Due to improper buffer management in Squid?s URN processing subsystem, oversized responses could overflow a fixed-size heap buffer (~4096 bytes). This resulted in memory corruption and unintentional disclosure of heap content.

The bug affected all Squid versions up to 6.3, across multiple Linux distributions shipping outdated builds.

? Disclosure Timeline

2025-07-01 ? Initial private report

2025-07-02 ? 07-29 ? Verification & maintainer coordination

2025-07-30 ? CVE assigned

2025-07-31 ? Advisory published

2025-08-xx ? Patch included in Squid 6.4

? Official Advisory

GHSA-w4gv-vw3f-29g3
CVE-2025-54574

? Author

Guadalupe Colantonio ? Security Researcher
? GitHub: your username
? This email address is being protected from spambots. You need JavaScript enabled to view it.

Social Media Share