NTLM Buffer Overflow
libcurl's NTLM function can overflow a stack-based buffer if given a too long username or domain name. This would happen if you enable NTLM authentication and either: A - pass in a username and domain name to libcurl that together are longer than 192 bytes B - allow (lib)curl to follow HTTP "redirects" (Location: and the appropriate HTTP 30x response code) and the new URL contains a URL with a username and domain name that together are longer than 192 bytes
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2005-3185
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 14:10 UTC · Revision 1
Source evidence
libcurl's NTLM function can overflow a stack-based buffer if given a too long username or domain name. This would happen if you enable NTLM authentication and either: A - pass in a username and domain name to libcurl that together are longer than 192 bytes B - allow (lib)curl to follow HTTP "redirects" (Location: and the appropriate HTTP 30x response code) and the new URL contains a URL with a username and domain name that together are longer than 192 bytes
osv:CURL-CVE-2005-3185
Complete source record
{
"id": "401a8d9c8128f274ecc0d2f904a85088a63de33687bdc92efc42ea47dfe02f54",
"url": "https://osv.dev/vulnerability/CURL-CVE-2005-3185",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "NTLM Buffer Overflow",
"summary": "libcurl's NTLM function can overflow a stack-based buffer if given a too long username or domain name. This would happen if you enable NTLM authentication and either: A - pass in a username and domain name to libcurl that together are longer than 192 bytes B - allow (lib)curl to follow HTTP \"redirects\" (Location: and the appropriate HTTP 30x response code) and the new URL contains a URL with a username and domain name that together are longer than 192 bytes",
"evidence": "osv:CURL-CVE-2005-3185",
"products": [],
"severity": "high",
"structured": {
"id": "CURL-CVE-2005-3185",
"aliases": [
"CURL-CVE-2005-3185",
"CVE-2005-3185"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.10.6"
},
{
"fixed": "7.15.0"
}
]
},
{
"repo": "https://github.com/curl/curl.git",
"type": "GIT",
"events": [
{
"introduced": "bdb5e5a25037a585e0ec6b83d29b25961c6823f8"
},
{
"fixed": "943aea62679fb9f2d6d7abe59b5edcba21490c52"
}
]
}
],
"versions": [
"7.14.1",
"7.14.0",
"7.13.2",
"7.13.1",
"7.13.0",
"7.12.3",
"7.12.2",
"7.12.1",
"7.12.0",
"7.11.2",
"7.11.1",
"7.11.0",
"7.10.8",
"7.10.7",
"7.10.6",
"curl-7_14_1",
"curl-7_14_0",
"curl-7_13_2",
"curl-7_13_1",
"before_ftp_statemachine",
"curl-7_13_0",
"curl-7_12_3",
"curl-7_12_2",
"curl-7_12_1",
"curl-7_12_0",
"curl-7_11_2",
"curl-7_11_1",
"curl-7_11_0",
"curl-7_10_8",
"curl-7_10_7",
"curl-7_10_6"
],
"database_specific": {
"source": "https://curl.se/docs/CURL-CVE-2005-3185.json",
"vanir_signatures": [
{
"id": "CURL-CVE-2005-3185-90a25c7b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171114046798777151270719067410152303371",
"290753497773825416687583203876565458288",
"75455037029382482363366612127796244813"
]
},
"source": "https://github.com/curl/curl.git/commit/943aea62679fb9f2d6d7abe59b5edcba21490c52",
"target": {
"file": "lib/http_ntlm.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2005-3185-ea12ec00",
"digest": {
"length": 6942,
"function_hash": "238977671527874511677942108580874230893"
},
"source": "https://github.com/curl/curl.git/commit/943aea62679fb9f2d6d7abe59b5edcba21490c52",
"target": {
"file": "lib/http_ntlm.c",
"function": "Curl_output_ntlm"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-26T13:07:50Z"
}
}
],
"modified": "2026-10-26T13:07:50.698655336Z",
"provider": "osv",
"references": [],
"provider_metadata": {
"CWE": {
"id": "CWE-121",
"desc": "Stack-based Buffer Overflow"
},
"URL": "https://curl.se/docs/CVE-2005-3185.json",
"www": "https://curl.se/docs/CVE-2005-3185.html",
"affects": "both",
"package": "curl",
"severity": "High",
"last_affected": "7.14.1"
}
},
"related_cves": [
{
"value": "CVE-2005-3185",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 453271,
"published_at": "2005-10-13T08:00:00+00:00"
}