---
id: CVE-2024-2004
title: >-
  When a protocol selection parameter option disables all protocols without
  adding any then the default set of protocols would remain in the allowed set
  due to an error in the logic for removing protocols
summary: >-
  When a protocol selection parameter option disables all protocols without
  adding any then the default set of protocols would remain in the allowed set
  due to an error in the logic for removing protocols. The below command would
  perform a…
severity: low
cvss: 3.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N'
cwe:
  - CWE-436
  - CWE-115
vendor: haxx
product: curl
affected:
  - 'curl >= 7.85.0, < 8.7.0'
  - fedora = 39
  - fedora = 40
  - macos < 12.7.6
  - 'macos >= 13.0, < 13.6.8'
  - 'macos >= 14.0, < 14.6'
  - ontap = 9
  - ontap_select_deploy_administration_utility
  - bootstrap_os
  - h300s_firmware
  - h410s_firmware
  - h500s_firmware
  - h700s_firmware
patched:
  - curl 8.7.0
  - macos 14.6
published: '2024-03-27'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:42.867'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-2004'
references:
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/18'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/19'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/20'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://www.openwall.com/lists/oss-security/2024/03/27/1'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2024-2004.html'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2024-2004.json'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/2384833'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2D44YLAUFJU6BZ4XFG2FYV7SBKXB5IZ6/
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GMD6UYKCCRCYETWQZUJ65ZRFULT6SHLI/
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://security.netapp.com/advisory/ntap-20240524-0006/'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://support.apple.com/kb/HT214118'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://support.apple.com/kb/HT214119'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://support.apple.com/kb/HT214120'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/18'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/19'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://seclists.org/fulldisclosure/2024/Jul/20'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2024/03/27/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://curl.se/docs/CVE-2024-2004.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://curl.se/docs/CVE-2024-2004.json'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://hackerone.com/reports/2384833'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2D44YLAUFJU6BZ4XFG2FYV7SBKXB5IZ6/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GMD6UYKCCRCYETWQZUJ65ZRFULT6SHLI/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20240524-0006/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT214118'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT214119'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://support.apple.com/kb/HT214120'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-331112.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-417159.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.01681
epssPercentile: 0.76611
ingestedAt: '2026-10-15T03:30:12.644Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-04-25T18:17:42.513804Z'
---

## Overview

When a protocol selection parameter option disables all protocols without adding any then the default set of protocols would remain in the allowed set due to an error in the logic for removing protocols. The below command would perform a request to curl.se with a plaintext protocol which has been explicitly disabled.      curl --proto -all,-http http://curl.se  The flaw is only present if the set of selected protocols disables the entire set of available protocols, in itself a command with no practical use and therefore unlikely to be encountered in real situations. The curl security team has thus assessed this to be low severity bug.

## Affected

- `curl >= 7.85.0, < 8.7.0`
- `fedora = 39`
- `fedora = 40`
- `macos < 12.7.6`
- `macos >= 13.0, < 13.6.8`
- `macos >= 14.0, < 14.6`
- `ontap = 9`
- `ontap_select_deploy_administration_utility`
- `bootstrap_os`
- `h300s_firmware`
- `h410s_firmware`
- `h500s_firmware`
- `h700s_firmware`

## Remediation

Upgrade past the affected range:

- `curl 8.7.0`
- `macos 14.6`
