Usage of disabled protocol
Description
CURL's protocol selection logic error allows explicitly disabled protocols to be used when all protocols are disabled without adding any.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CURL's protocol selection logic error allows explicitly disabled protocols to be used when all protocols are disabled without adding any.
Vulnerability
The vulnerability resides in the protocol selection parameter handling within curl and libcurl versions prior to the fix. When the --proto option is used with a parameter that disables all protocols (e.g., --proto -all,-http) without adding any, a logic error in protocol removal causes the default set of protocols to remain in the allowed set. This allows a request to be performed using a disabled protocol. Affected versions include all curl and libcurl releases before the patch that addressed this issue [4].
Exploitation
To exploit this flaw, an attacker would need to craft a command-line invocation of curl that uses the specific protocol selection syntax that disables all protocols. The attack requires local access to execute the curl command or the ability to influence command-line arguments used by a script or application invoking curl. The user or administrator would have to explicitly run a command such as curl --proto -all,-http http://curl.se. While unlikely in normal usage, it could be triggered if an attacker controls the arguments passed to curl.
Impact
Successful exploitation would result in curl using a protocol that was intended to be disabled. This could allow an attacker to bypass security restrictions that rely on protocol disabling, potentially enabling connections to untrusted servers using plaintext protocols like HTTP, which could lead to information disclosure or man-in-the-middle attacks. The curl security team assessed this as low severity due to the impracticality of the required command in real-world scenarios [4].
Mitigation
Users should update to a fixed version of curl. The fix is included in curl releases after March 27, 2024, as described in the security advisory [4]. No workarounds are necessary if the command-line is not modified by untrusted input; however, administrators should ensure that the --proto option is not used with the specific syntax that disables all protocols. The vulnerability was also addressed in Apple's macOS Sonoma 14.6, Ventura 13.6.8, and Monterey 12.7.6 updates (CVE-2024-40804, CVE-2024-40783) [1][2][3].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
38- osv-coords36 versionspkg:apk/chainguard/curlpkg:apk/chainguard/curl-devpkg:apk/chainguard/curl-docpkg:apk/chainguard/curl-oci-entrypointpkg:apk/chainguard/curl-staticpkg:apk/chainguard/libcurl4pkg:apk/chainguard/libcurl-openssl4pkg:apk/wolfi/curlpkg:apk/wolfi/curl-devpkg:apk/wolfi/curl-docpkg:apk/wolfi/curl-oci-entrypointpkg:apk/wolfi/curl-staticpkg:apk/wolfi/libcurl4pkg:apk/wolfi/libcurl-openssl4pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Installer%20Updates%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Installer%20Updates%2015%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/curl&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/curl&distro=SUSE%20Manager%20Server%204.3
< 8.7.1-r0+ 35 more
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.7.1-1.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 7.66.0-150200.4.69.1
- (no CPE)range: < 7.66.0-150200.4.69.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.6.0-3.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
13- seclists.org/fulldisclosure/2024/Jul/18mitre
- seclists.org/fulldisclosure/2024/Jul/19mitre
- seclists.org/fulldisclosure/2024/Jul/20mitre
- www.openwall.com/lists/oss-security/2024/03/27/1mitre
- curl.se/docs/CVE-2024-2004.htmlmitre
- curl.se/docs/CVE-2024-2004.jsonmitre
- hackerone.com/reports/2384833mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2D44YLAUFJU6BZ4XFG2FYV7SBKXB5IZ6/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GMD6UYKCCRCYETWQZUJ65ZRFULT6SHLI/mitre
- security.netapp.com/advisory/ntap-20240524-0006/mitre
- support.apple.com/kb/HT214118mitre
- support.apple.com/kb/HT214119mitre
- support.apple.com/kb/HT214120mitre
News mentions
0No linked articles in our index yet.