{"id":"CVE-2023-38545","aliases":["CVE-2023-38545","CURL-CVE-2023-38545"],"related":[],"kind":"vulnerability","state":"published","title":"SOCKS5 heap buffer overflow","summary":"This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy\nhandshake.\n\nWhen curl is asked to pass along the host name to the SOCKS5 proxy to allow\nthat to resolve the address instead of it getting done by curl itself, the\nmaximum length that host name can be is 255 bytes.\n\nIf the host name is detected to be longer, curl switches to local name\nresolving and instead passes on the resolved address only. Due to this bug,\nthe local variable that means \"let the host resolve the name\" could get the\nwrong value during a slow SOCKS5 handshake, and contrary to the intention,\ncopy the too long host name to the target buffer instead of copying just the\nresolved address there.\n\nThe target buffer being a heap based buffer, and the host name coming from the\nURL that curl has been told to operate with.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy\nhandshake.\n\nWhen curl is asked to pass along the host name to the SOCKS5 proxy to allow\nthat to resolve the address instead of it getting done by curl itself, the\nmaximum length that host name can be is 255 bytes.\n\nIf the host name is detected to be longer, curl switches to local name\nresolving and instead passes on the resolved address only. Due to this bug,\nthe local variable that means \"let the host resolve the name\" could get the\nwrong value during a slow SOCKS5 handshake, and contrary to the intention,\ncopy the too long host name to the target buffer instead of copying just the\nresolved address there.\n\nThe target buffer being a heap based buffer, and the host name coming from the\nURL that curl has been told to operate with.","source":"cvelist"},{"lang":"en","text":"This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy\nhandshake.\n\nWhen curl is asked to pass along the hostname to the SOCKS5 proxy to allow\nthat to resolve the address instead of it getting done by curl itself, the\nmaximum length that hostname can be is 255 bytes.\n\nIf the hostname is detected to be longer than 255 bytes, curl switches to\nlocal name resolving and instead passes on the resolved address only to the\nproxy. Due to a bug, the local variable that means \"let the host resolve the\nname\" could get the wrong value during a slow SOCKS5 handshake, and contrary\nto the intention, copy the too long hostname to the target buffer instead of\ncopying only the resolved address there.","format":"markdown","source":"curl"},{"lang":"es","text":"Esta falla hace que curl desborde un búfer basado en el protocolo de enlace del proxy SOCKS5. Cuando se le pide a curl que pase el nombre de host al proxy SOCKS5 para permitir que resuelva la dirección en lugar de que lo haga curl mismo, la longitud máxima que puede tener el nombre de host es 255 bytes. Si se detecta que el nombre de host es más largo, curl cambia a la resolución de nombres local y en su lugar pasa solo la dirección resuelta. Debido a este error, la variable local que significa \"dejar que el host resuelva el nombre\" podría obtener el valor incorrecto durante un protocolo de enlace SOCKS5 lento y, contrariamente a la intención, copiar el nombre del host demasiado largo al búfer de destino en lugar de copiar solo la dirección resuelta allí. El búfer de destino es un búfer basado en montón y el nombre de host proviene de la URL con la que se le ha dicho a curl que opere.","source":"nvd"}],"published":"2023-10-11T08:00:00.000Z","modified":"2026-10-25T01:04:40.110Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"curl","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"8.4.0","fixed":"8.4.0","status":"affected"},{"type":"semver","introduced":"7.69.0","fixed":"7.69.0","status":"unaffected"}],"vendor":"curl","product":"curl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.69.0","status":"affected","fixed":"8.4.0"},{"type":"git","introduced":"4a4b63daaa01ef59b131d91e8e6e6dfe275c0f08","status":"affected","fixed":"fb4415d8aee6c1045be932a34fe6107c2f5ed147"}],"repo":"https://github.com/curl/curl.git","source":"curl"},{"ranges":[{"status":"affected","introduced":"7.69.0","fixed":"8.4.0"}],"vendor":"haxx","product":"libcurl","cpe":"cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_insight","cpe":"cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_workflow_automation","cpe":"cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.17763.5122"}],"vendor":"microsoft","product":"windows_10_1809","cpe":"cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.19044.3693"}],"vendor":"microsoft","product":"windows_10_21h2","cpe":"cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.19045.3693"}],"vendor":"microsoft","product":"windows_10_22h2","cpe":"cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.22000.2600"}],"vendor":"microsoft","product":"windows_11_21h2","cpe":"cpe:2.3:o:microsoft:windows_11_21h2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.22621.2715"}],"vendor":"microsoft","product":"windows_11_22h2","cpe":"cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.22631.2715"}],"vendor":"microsoft","product":"windows_11_23h2","cpe":"cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.17763.5122"}],"vendor":"microsoft","product":"windows_server_2019","cpe":"cpe:2.3:o:microsoft:windows_server_2019:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.20348.2113"}],"vendor":"microsoft","product":"windows_server_2022","cpe":"cpe:2.3:o:microsoft:windows_server_2022:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://curl.se/docs/CVE-2023-38545.html","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20231027-0009/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://support.apple.com/kb/HT214036","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://support.apple.com/kb/HT214063","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://support.apple.com/kb/HT214057","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://support.apple.com/kb/HT214058","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://seclists.org/fulldisclosure/2024/Jan/34","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://seclists.org/fulldisclosure/2024/Jan/37","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://seclists.org/fulldisclosure/2024/Jan/38","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240201-0005/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bcdannyboy/CVE-2023-38545","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dbrugman/CVE-2023-38545-POC","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://github.com/UTsweetyfish/CVE-2023-38545","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-943925.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-832273.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-093430.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-507364.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Jay Satiro"],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-10-17T21:11:03.346Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38545","url":"https://www.cve.org/CVERecord?id=CVE-2023-38545","licence":"CVE Terms of Use","modified":"2026-10-14T23:35:01.977Z"},{"source":"curl","name":"curl","id":"CURL-CVE-2023-38545","url":"https://osv.dev/vulnerability/CURL-CVE-2023-38545","licence":"MIT","modified":"2026-10-25T01:04:40.110Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38545","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38545","licence":"Public domain","modified":"2026-06-17T06:10:41.627Z"}],"updatedAt":"2026-11-25T22:58:28.896Z","epss":{"score":0.78317,"percentile":0.99584,"date":"2026-12-01T12:00:22.000Z"}}