CVE-2005-4077
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.
Exploit likelihood
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 Medium
AV: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
| Package | Affected | Fixed |
|---|---|---|
curlDebian:12 |
before 7.15.1-1 | 7.15.1-1 |
curlDebian:13 |
before 7.15.1-1 | 7.15.1-1 |
curlDebian:14 |
before 7.15.1-1 | 7.15.1-1 |
curlDebian:3.0 |
before 7.9.5-1woody2, plus listed versions 7.9.5-17.9.5-1woody1 |
7.9.5-1woody2 |
curlDebian: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 |
curlRed Hat:enterprise_linux:4::as |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-debuginfoRed Hat:enterprise_linux:4::as |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-develRed Hat:enterprise_linux:4::as |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curlRed Hat:enterprise_linux:4::desktop |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
curl-develRed Hat:enterprise_linux:4::desktop |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curlRed Hat:enterprise_linux:4::es |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-debuginfoRed Hat:enterprise_linux:4::es |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-develRed Hat:enterprise_linux:4::es |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curlRed Hat:enterprise_linux:4::ws |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
curl-develRed Hat:enterprise_linux:4::ws |
before 0:7.12.1-8.rhel4 | 0:7.12.1-8.rhel4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
securityfocus.com/bid/17951
gentoo.org/security/en/glsa/glsa-200603-25.xml
vupen.com/english/advisories/2006/1779
us-cert.gov/cas/techalerts/TA06-132A.html
vupen.com/english/advisories/2005/2791
vupen.com/english/advisories/2006/0960
Show 39 moreShow less
debian.org/security/2005/dsa-919
secunia.com/advisories/19433
redhat.com/archives/fedora-announce-list/2005-December/msg00020.html
redhat.com/support/errata/RHSA-2005-875.html
securityfocus.com/archive/1/418849/100/0/threaded
hardened-php.net/advisory_242005.109.html
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10855
vupen.com/english/advisories/2008/0924/references
usn.ubuntu.com/228-1
secunia.com/advisories/17977
curl.haxx.se/docs/adv_20051207.html
secunia.com/advisories/18105
securityfocus.com/bid/15756
lists.apple.com/archives/security-announce/2006/May/msg00003.html
lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
secunia.com/advisories/18336
secunia.com/advisories/19261
gentoo.org/security/en/glsa/glsa-200512-09.xml
trustix.org/errata/2005/0072
secunia.com/advisories/17965
qa.openoffice.org/issues/show_bug.cgi?id=59032
secunia.com/advisories/19457
docs.info.apple.com/article.html?artnum=307562
secunia.com/advisories/17960
mandriva.com/security/advisories?name=MDKSA-2005:224
secunia.com/advisories/17907
secunia.com/advisories/20077
secunia.com/advisories/18188
secunia.com/advisories/17961
nvd.nist.gov/vuln/detail/CVE-2005-4077
github.com/advisories/GHSA-c4xg-24hh-cq78
security-tracker.debian.org/tracker/CVE-2005-4077
access.redhat.com/errata/RHSA-2005:875
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=175266
security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_875.json
access.redhat.com/security/cve/CVE-2005-4077
bugzilla.redhat.com/show_bug.cgi?id=1617850
cve.org/CVERecord?id=CVE-2005-4077