GHSA-7XW9-W465-6X42
Vulnerability from github – Published: 2023-10-18 06:30 – Updated: 2025-02-13 18:31This 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.
{
"affected": [],
"aliases": [
"CVE-2023-38545"
],
"database_specific": {
"cwe_ids": [
"CWE-787"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-10-18T04:15:11Z",
"severity": "CRITICAL"
},
"details": "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.",
"id": "GHSA-7xw9-w465-6x42",
"modified": "2025-02-13T18:31:57Z",
"published": "2023-10-18T06:30:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38545"
},
{
"type": "WEB",
"url": "https://curl.se/docs/CVE-2023-38545.html"
},
{
"type": "WEB",
"url": "https://forum.vmssoftware.com/viewtopic.php?f=8\u0026t=8868"
},
{
"type": "WEB",
"url": "https://github.com/UTsweetyfish/CVE-2023-38545"
},
{
"type": "WEB",
"url": "https://github.com/bcdannyboy/CVE-2023-38545"
},
{
"type": "WEB",
"url": "https://github.com/dbrugman/CVE-2023-38545-POC"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ"
},
{
"type": "WEB",
"url": "https://security.netapp.com/advisory/ntap-20231027-0009"
},
{
"type": "WEB",
"url": "https://security.netapp.com/advisory/ntap-20240201-0005"
},
{
"type": "WEB",
"url": "https://support.apple.com/kb/HT214036"
},
{
"type": "WEB",
"url": "https://support.apple.com/kb/HT214057"
},
{
"type": "WEB",
"url": "https://support.apple.com/kb/HT214058"
},
{
"type": "WEB",
"url": "https://support.apple.com/kb/HT214063"
},
{
"type": "WEB",
"url": "https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2024/Jan/34"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2024/Jan/37"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2024/Jan/38"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.