CVE-2023-38545

critical
Published 2023-10-17 ยท Modified 2023-11-14
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
9.8

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.

Predictions

Exploit likelihood
97%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

fedora Fedora Affected 1 release
VersionStatusFixed in
37 Affected โ€”
suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
windows Windows Affected 1 release
VersionStatusFixed in
โ€” Affected 10.0.17763.5122
almalinux AlmaLinux Fixed 1 release
VersionStatusFixed in
9 Fixed libcurl-devel-7.76.1-26.el9_3.2.aarch64.rpm
arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 8.4.0-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 8.3.0-3
sid Fixed 8.3.0-3
forky Fixed 8.3.0-3
bullseye Fixed 7.74.0-1.3+deb11u10
bookworm Fixed 7.88.1-10+deb12u4
redhat Red Hat Fixed 1 release
VersionStatusFixed in
9 Fixed โ€”
rockylinux Rocky Linux Fixed 1 release
VersionStatusFixed in
9 Fixed โ€”

Application impact

VendorProductVersionsFixed
haxxlibcurl{"startIncluding":"7.69.0","endExcluding":"8.4.0"}8.4.0
netappactive_iq_unified_manager-
netapponcommand_insight-
netapponcommand_workflow_automation-

References

CWEs

CWE-787

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.