Exploit database

Vulnerability

CVE-2023-38545

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the host name to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that host name can be is 255 bytes. If the host name is detected to be longer, curl switches to local name resolving and instead passes on the resolved address only. Due to this bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long host name to the target buffer instead of copying just the resolved address there. The target buffer being a heap based buffer, and the host name coming from the URL that curl has been told to operate with.

CVE Program

Exploit source choices

9 sources
d0rb/cve-2023-38545
GH-a13bff54af4496c5d2434ed71356a7fbGitHubUnofficial GitHub sourcePreferred

This script is designed to exploit a heap buffer overflow vulnerability in a socks5 proxy server.

2023-10-172 files · 21 stars
utsweetyfish/cve-2023-38545
GH-b2bd44debf51289bac1dee81552476a8GitHubUnofficial GitHub source

Simple PoC causing overflow

2023-10-115 files · 20 stars
imfht/cve-2023-38545
GH-f82cedc42df35f74e32abed25839a856GitHubUnofficial GitHub source

😄 CVE-2023-38545堆溢出的POC和分析文章

2023-10-125,021 files · 8 stars
bcdannyboy/cve-2023-38545
GH-2bc557ba188e547275eb65e2fcb1cdafGitHubUnofficial GitHub source

A proof of concept for testing CVE-2023-38545 against local curl

2023-10-165 files · 4 stars
vanigori/cve-2023-38545-sample
GH-8fb7ff68513cd1983d40ebce8b73789bGitHubUnofficial GitHub source

Dockerfile containing all the necessary setup files to demo the exploit

2023-10-125 files · 3 stars
dbrugman/cve-2023-38545-poc
GH-56ad0b17c6082120a377abe5ad3e4e02GitHubUnofficial GitHub source

CVE-2023-38545 POC for the curl command line tool

2023-10-162 files · 2 stars
bytehackr/cve_insight
GH-662748402bc7e4f988f8dcfaf71c98b6GitHubUnofficial GitHub source

Get Insight of a CVE using Local LLMs

2025-06-036 files · 1 stars
christopher-deriv/cve_analyzer
GH-5b72c244da53a8535e89e4be07ae8082GitHubUnofficial GitHub source

christopher-deriv/cve_analyzer source repository

2025-04-186 files · 0 stars