Every CVE Search/ Get API key

CVE-2005-4077

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users...

4.6 MediumFix available

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Exploit likelihood

0.52%Down 1.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 4.6

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
CVE-2005-4077
CVSS 2.0
4.6 MediumAV:L/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-189
Updated
2026-11-02
CVE List No score

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
CVE-2005-4077
Updated
2026-11-02
EUVDEUVD-2005-4072 No score

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
EUVD-2005-4072
Updated
2026-11-03
GitHub AdvisoriesGHSA-c4xg-24hh-cq78 No score

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users...

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
GHSA-c4xg-24hh-cq78
Updated
2026-11-02
OSVCURL-CVE-2005-4077 No score

URL Buffer Overflow

libcurl's URL parser function can overflow a heap based buffer in two ways, if given a too long URL.

These overflows happen if you

1 - pass in a URL with no protocol (like "http://") prefix, using no slash and the string is 256 bytes or longer. This leads to a single zero byte overflow of the heap buffer.

2 - pass in a URL with only a question mark as separator (no slash) between the host and the query part of the URL. This leads to a single zero byte overflow of the heap buffer.

Both overflows can be made with the same input string, leading to two single zero byte overwrites.

The affected flaw cannot be triggered by a redirect, but the long URL must be passed in "directly" to libcurl. It makes this a "local" problem. Of course, lots of programs may still pass in user-provided URLs to libcurl without doing much syntax checking of their own, allowing a user to exploit this vulnerability.

Record
CURL-CVE-2005-4077
Updated
2026-11-02
OSV No score

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
CVE-2005-4077
Updated
2026-11-02
OSVDEBIAN-CVE-2005-4077 No score

Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users to trigger a buffer overflow and cause a denial of service or bypass PHP security restrictions via certain URLs that (1) are malformed in a way that prevents a terminating null byte from being added to either a hostname or path buffer, or (2) contain a "?" separator in the hostname portion, which causes a "/" to be prepended to the resulting string.

Record
DEBIAN-CVE-2005-4077
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
curl
Debian:12
before 7.15.1-1
7.15.1-1
curl
Debian:13
before 7.15.1-1
7.15.1-1
curl
Debian:14
before 7.15.1-1
7.15.1-1
curl
Debian:3.0
before 7.9.5-1woody2, plus listed versions
7.9.5-17.9.5-1woody1
7.9.5-1woody2
curl
Debian:3.1
before 7.13.2-2sarge5, plus listed versions
7.13.2-27.13.2-2sarge17.13.2-2sarge27.13.2-2sarge37.13.2-2sarge4
7.13.2-2sarge5
curl
Red Hat:enterprise_linux:4::as
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-debuginfo
Red Hat:enterprise_linux:4::as
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-devel
Red Hat:enterprise_linux:4::as
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl
Red Hat:enterprise_linux:4::desktop
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-debuginfo
Red Hat:enterprise_linux:4::desktop
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
Show 7 moreShow less
Affected packages
PackageAffectedFixed
curl-devel
Red Hat:enterprise_linux:4::desktop
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl
Red Hat:enterprise_linux:4::es
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-debuginfo
Red Hat:enterprise_linux:4::es
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-devel
Red Hat:enterprise_linux:4::es
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl
Red Hat:enterprise_linux:4::ws
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-debuginfo
Red Hat:enterprise_linux:4::ws
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4
curl-devel
Red Hat:enterprise_linux:4::ws
before 0:7.12.1-8.rhel4
0:7.12.1-8.rhel4

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2005-4077 is a medium vulnerability (CVSS 4.6) in Daniel Stenberg Curl, published December 7, 2005. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.52%, the 44th percentile. Fixed in curl 7.15.1-1.

References

Show 39 moreShow less
MoveEnter Open