JLSEC-2025-34

Source
https://github.com/JuliaLang/SecurityAdvisories.jl/blob/main/advisories/published/2025/JLSEC-2025-34.md
Import Source
https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2025/JLSEC-2025-34.json
JSON Data
https://api.test.osv.dev/v1/vulns/JLSEC-2025-34
Upstream
Published
2025-10-10T15:04:01.319Z
Modified
2025-11-03T00:19:30.546589Z
Summary
This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake.
Details

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.

Database specific
{
    "license": "CC-BY-4.0",
    "sources": [
        {
            "id": "CVE-2023-38545",
            "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-38545",
            "imported": "2025-10-10T14:33:22.324Z",
            "published": "2023-10-18T04:15:11.077Z",
            "html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38545",
            "modified": "2025-02-13T17:16:47.823Z"
        }
    ]
}
References

Affected packages

Julia / CURL_jll

Package

Name
CURL_jll
Purl
pkg:julia/CURL_jll?uuid=b21e61f3-bafc-59ac-ab14-4c5c62d6588d

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.5.0+0

Julia / LibCURL_jll

Package

Name
LibCURL_jll
Purl
pkg:julia/LibCURL_jll?uuid=deac9b47-8bc7-5906-a0fe-35ac56dc84c0

Affected ranges

Type
SEMVER
Events
Introduced
7.70.0+0
Fixed
8.4.0+0