{"id":"CVE-2005-4077","aliases":["CURL-CVE-2005-4077","DEBIAN-CVE-2005-4077","DSA-919-2","EUVD-2005-4072","GHSA-c4xg-24hh-cq78","RHSA-2005:875"],"status":"published","title":"Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users...","description":"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.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00516,"percentile":0.44176,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-189"],"published":"2005-12-07T08:00:00Z","modified":"2026-10-24T23:17:46Z","fixes":[{"ecosystem":"Debian:12","package":"curl","fixed_in":["7.15.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"curl","fixed_in":["7.15.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"curl","fixed_in":["7.15.1-1"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl-debuginfo","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl-devel","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl-debuginfo","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl-devel","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl-debuginfo","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl-devel","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl-debuginfo","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl-devel","fixed_in":["0:7.12.1-8.rhel4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.15.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.15.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.15.1-1"}]}]},{"source":"osv","ecosystem":"Debian:3.0","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.9.5-1woody2"}]}],"versions":["7.9.5-1","7.9.5-1woody1"],"bundled":2},{"source":"osv","ecosystem":"Debian:3.1","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.13.2-2sarge5"}]}],"versions":["7.13.2-2","7.13.2-2sarge1","7.13.2-2sarge2","7.13.2-2sarge3","7.13.2-2sarge4"],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"curl-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"curl-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"curl-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"curl-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:7.12.1-8.rhel4"}]}]}],"products":[{"vendor":"daniel_stenberg","product":"curl"}],"references":[{"url":"http://www.securityfocus.com/bid/17951","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200603-25.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2006/1779","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA06-132A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","US Government Resource","web"]},{"url":"http://www.vupen.com/english/advisories/2005/2791","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.vupen.com/english/advisories/2006/0960","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.debian.org/security/2005/dsa-919","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/19433","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.redhat.com/archives/fedora-announce-list/2005-December/msg00020.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-875.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"http://www.securityfocus.com/archive/1/418849/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://www.hardened-php.net/advisory_242005.109.html","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10855","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2008/0924/references","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"https://usn.ubuntu.com/228-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"http://secunia.com/advisories/17977","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://curl.haxx.se/docs/adv_20051207.html","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://secunia.com/advisories/18105","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.securityfocus.com/bid/15756","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","fix"]},{"url":"ftp://ftp.sco.com/pub/updates/UnixWare/SCOSA-2006.16/SCOSA-2006.16.txt","tags":["vendor-advisory","x_refsource_SCO","x_transferred","web"]},{"url":"http://lists.apple.com/archives/security-announce/2006/May/msg00003.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","web"]},{"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","web"]},{"url":"http://secunia.com/advisories/18336","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/19261","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200512-09.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","web"]},{"url":"http://www.trustix.org/errata/2005/0072/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","web"]},{"url":"http://secunia.com/advisories/17965","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://qa.openoffice.org/issues/show_bug.cgi?id=59032","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://secunia.com/advisories/19457","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://docs.info.apple.com/article.html?artnum=307562","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/17960","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:224","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/17907","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://secunia.com/advisories/20077","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/18188","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/17961","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-4077","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c4xg-24hh-cq78"},{"url":"https://security-tracker.debian.org/tracker/CVE-2005-4077","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2005:875","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=175266","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_875.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-4077","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617850","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-4077","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2005-4077","description":"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.","status":"published","published":"2005-12-08T01:00:00Z","modified":"2024-08-07T23:31:48.962Z","updated_at":"2026-11-02T14:33:38.906611Z"}],"euvd":[{"id":"EUVD-2005-4072","description":"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.","status":"published","published":"2005-12-08T01:00:00Z","modified":"2024-08-07T23:31:48Z","updated_at":"2026-11-03T01:15:24.155852Z"}],"ghsa":[{"id":"GHSA-c4xg-24hh-cq78","title":"Multiple off-by-one errors in the cURL library (libcurl) 7.11.2 through 7.15.0 allow local users...","description":"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.","status":"published","published":"2022-05-03T03:14:37Z","modified":"2023-02-01T05:01:15Z","updated_at":"2026-11-02T14:49:41.640503Z"}],"nvd":[{"id":"CVE-2005-4077","description":"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.","status":"published","published":"2005-12-08T01:03:00Z","modified":"2026-06-16T22:18:10.443Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-189"],"updated_at":"2026-11-02T14:00:57.944899Z"}],"osv":[{"id":"CURL-CVE-2005-4077","title":"URL Buffer Overflow","description":"libcurl's URL parser function can overflow a heap based buffer in two ways, if\ngiven a too long URL.\n\nThese overflows happen if you\n\n 1 - pass in a URL with no protocol (like \"http://\") prefix, using no slash\n     and the string is 256 bytes or longer. This leads to a single zero byte\n     overflow of the heap buffer.\n\n 2 - pass in a URL with only a question mark as separator (no slash) between\n     the host and the query part of the URL. This leads to a single zero byte\n     overflow of the heap buffer.\n\nBoth overflows can be made with the same input string, leading to two single\nzero byte overwrites.\n\nThe affected flaw cannot be triggered by a redirect, but the long URL must be\npassed in \"directly\" to libcurl. It makes this a \"local\" problem. Of course,\nlots of programs may still pass in user-provided URLs to libcurl without doing\nmuch syntax checking of their own, allowing a user to exploit this\nvulnerability.","status":"published","published":"2005-12-07T08:00:00Z","modified":"2026-10-24T23:17:46Z","updated_at":"2026-11-02T15:43:55.669514Z"},{"id":"CVE-2005-4077","description":"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.","status":"published","published":"2005-12-08T01:03:00Z","modified":"2026-04-10T03:38:15.955138Z","updated_at":"2026-11-02T15:43:56.581247Z"},{"id":"DEBIAN-CVE-2005-4077","description":"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.","status":"published","published":"2005-12-08T01:03:00Z","modified":"2026-10-23T03:47:40.892378198Z","updated_at":"2026-11-02T15:45:22.831407Z"},{"id":"DSA-919-2","title":"curl - buffer overflow","status":"published","published":"2005-12-12T00:00:00Z","modified":"2026-03-09T02:10:57.953816Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"RHSA-2005:875","title":"Red Hat Security Advisory: curl security update","status":"published","published":"2024-09-15T16:01:13Z","modified":"2026-06-26T10:04:02Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
