Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927960 (CVE-2024-2004, CVE-2024-2398, CVE-2024-2466) - <net-misc/curl-8.7.1: multiple vulnerabilities
Summary: <net-misc/curl-8.7.1: multiple vulnerabilities
Status: RESOLVED FIXED
Alias: CVE-2024-2004, CVE-2024-2398, CVE-2024-2466
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://www.openwall.com/lists/oss-se...
Whiteboard: A3 [glsa+]
Keywords:
Depends on: 927998 930702
Blocks:
  Show dependency tree
 
Reported: 2024-03-27 13:10 UTC by Christopher Fore
Modified: 2024-09-23 05:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Fore 2024-03-27 13:10:10 UTC
CVE-2024-2004 (https://www.openwall.com/lists/oss-security/2024/03/27/1):

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.


CVE-2024-2398 (https://www.openwall.com/lists/oss-security/2024/03/27/3):

When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory. Further, this error condition fails silently and is therefore not easily detected by an application.


CVE-2024-2466 (https://www.openwall.com/lists/oss-security/2024/03/27/4):

libcurl did not check the server certificate of TLS connections done to a host specified as an IP address, when built to use mbedTLS. libcurl would wrongly avoid using the set hostname function when the specified hostname was given as an IP address, therefore completely skipping the certificate check. This affects all uses of TLS protocols (HTTPS, FTPS, IMAPS, POPS3, SMTPS, etc).



The above are fixed in curl 8.7.0, but 8.7.1 is the latest release.
Comment 1 Larry the Git Cow gentoo-dev 2024-03-28 02:09:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd006458fff2138c9810c0154f14528ff69a416f

commit cd006458fff2138c9810c0154f14528ff69a416f
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2024-03-28 01:07:25 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2024-03-28 02:09:28 +0000

    net-misc/curl: add 8.7.1
    
    Bug: https://bugs.gentoo.org/927960
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 net-misc/curl/Manifest                             |   2 +
 net-misc/curl/curl-8.7.1.ebuild                    | 366 +++++++++++++++++++++
 .../files/curl-8.7.1-fix-pkgconfig-macros.patch    |  39 +++
 3 files changed, 407 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2024-09-23 05:53:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=b04b4f7e697b62c8b67bd3c4bad5d6903b20f23f

commit b04b4f7e697b62c8b67bd3c4bad5d6903b20f23f
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2024-09-23 05:53:30 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-09-23 05:53:40 +0000

    [ GLSA 202409-20 ] curl: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/919325
    Bug: https://bugs.gentoo.org/919889
    Bug: https://bugs.gentoo.org/923413
    Bug: https://bugs.gentoo.org/927960
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 glsa-202409-20.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)