CVE-2004-0541 Memory corruption in n/a

Critical 10.0 Published Updated

Remote attackers can execute arbitrary code on Squid Web Proxy servers via a buffer overflow in NTLM authentication when handlers are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2004-0541?

CVE-2004-0541 is a critical memory corruption vulnerability in n/a, published on 10 Jun 2004. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Buffer overflow in the ntlm_check_auth (NTLM authentication) function for Squid Web Proxy Cache 2.5.x and 3.x, when compiled with NTLM handlers enabled, allows remote attackers to execute arbitrary code via a long password ("pass" variable).

Which versions are affected by CVE-2004-0541?

It affects 1 product.

Linux distribution packages (8)
squid Red Hat:enterprise_linux:3::asAll versions7:2.5.STABLE3-6.3E
squid-debuginfo Red Hat:enterprise_linux:3::asAll versions7:2.5.STABLE3-6.3E
squid Red Hat:enterprise_linux:3::desktopAll versions7:2.5.STABLE3-6.3E
squid-debuginfo Red Hat:enterprise_linux:3::desktopAll versions7:2.5.STABLE3-6.3E
squid Red Hat:enterprise_linux:3::esAll versions7:2.5.STABLE3-6.3E
squid-debuginfo Red Hat:enterprise_linux:3::esAll versions7:2.5.STABLE3-6.3E
squid Red Hat:enterprise_linux:3::wsAll versions7:2.5.STABLE3-6.3E
squid-debuginfo Red Hat:enterprise_linux:3::wsAll versions7:2.5.STABLE3-6.3E

Products include National Science Foundation Squid Web Proxy Cache.

How do I fix CVE-2004-0541?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2004-0541 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2004-0541 exists.

Public exploit code: 1 Metasploit module and 2 Exploit-DB entries.

Sources

Also known as DEBIAN-CVE-2004-0541, GHSA-c92g-qcfc-4869, RHSA-2004:242.

Is CVE-2004-0541 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free