{"id":"CVE-2005-1935","aliases":["EUVD-2005-1937","GHSA-7wp6-vjqc-vxjv"],"status":"published","title":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL...","description":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL) allows remote attackers to execute arbitrary code via nested constructed bit strings, which leads to a realloc of a non-null pointer and causes the function to overwrite previously freed memory, as demonstrated using a SPNEGO token with a constructed bit string during HTTP authentication, and a different vulnerability than CVE-2003-0818.  NOTE: the researcher has claimed that MS:MS04-007 fixes this issue.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.26629,"percentile":0.98032,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2005-06-09T04:00:00Z","modified":"2026-06-16T22:13:56Z","products":[{"vendor":"microsoft","product":"windows_2000"},{"vendor":"microsoft","product":"windows_2003_server"},{"vendor":"microsoft","product":"windows_nt"},{"vendor":"microsoft","product":"windows_xp"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/20870","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.phreedom.org/solar/exploits/msasn1-bitstring/","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-1935"},{"url":"http://www.phreedom.org/solar/exploits/msasn1-bitstring"},{"url":"https://github.com/advisories/GHSA-7wp6-vjqc-vxjv"}],"sources":{"cve":[{"id":"CVE-2005-1935","description":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL) allows remote attackers to execute arbitrary code via nested constructed bit strings, which leads to a realloc of a non-null pointer and causes the function to overwrite previously freed memory, as demonstrated using a SPNEGO token with a constructed bit string during HTTP authentication, and a different vulnerability than CVE-2003-0818.  NOTE: the researcher has claimed that MS:MS04-007 fixes this issue.","status":"published","published":"2005-06-09T04:00:00Z","modified":"2024-08-07T22:06:57.662Z","updated_at":"2026-11-02T14:33:39.586409Z"}],"euvd":[{"id":"EUVD-2005-1937","description":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL) allows remote attackers to execute arbitrary code via nested constructed bit strings, which leads to a realloc of a non-null pointer and causes the function to overwrite previously freed memory, as demonstrated using a SPNEGO token with a constructed bit string during HTTP authentication, and a different vulnerability than CVE-2003-0818.  NOTE: the researcher has claimed that MS:MS04-007 fixes this issue.","status":"published","published":"2005-06-09T04:00:00Z","modified":"2024-08-07T22:06:57Z","updated_at":"2026-11-03T01:15:32.408501Z"}],"ghsa":[{"id":"GHSA-7wp6-vjqc-vxjv","title":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL...","description":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL) allows remote attackers to execute arbitrary code via nested constructed bit strings, which leads to a realloc of a non-null pointer and causes the function to overwrite previously freed memory, as demonstrated using a SPNEGO token with a constructed bit string during HTTP authentication, and a different vulnerability than CVE-2003-0818.  NOTE: the researcher has claimed that MS:MS04-007 fixes this issue.","status":"published","published":"2022-05-01T02:03:25Z","modified":"2025-04-03T04:15:24Z","updated_at":"2026-11-02T15:00:42.132742Z"}],"nvd":[{"id":"CVE-2005-1935","description":"Heap-based buffer overflow in the BERDecBitString function in Microsoft ASN.1 library (MSASN1.DLL) allows remote attackers to execute arbitrary code via nested constructed bit strings, which leads to a realloc of a non-null pointer and causes the function to overwrite previously freed memory, as demonstrated using a SPNEGO token with a constructed bit string during HTTP authentication, and a different vulnerability than CVE-2003-0818.  NOTE: the researcher has claimed that MS:MS04-007 fixes this issue.","status":"published","published":"2005-06-13T04:00:00Z","modified":"2026-06-16T22:13:56.76Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:55.600202Z"}]}}
