Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910564 (CVE-2023-32001) - <net-misc/curl-8.2.0: fopen race condition (TOCTOU)
Summary: <net-misc/curl-8.2.0: fopen race condition (TOCTOU)
Status: RESOLVED FIXED
Alias: CVE-2023-32001
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: B4 [glsa+]
Keywords:
Depends on: 913543
Blocks:
  Show dependency tree
 
Reported: 2023-07-19 22:22 UTC by Sam James
Modified: 2024-09-16 03:50 UTC (History)
3 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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-19 22:22:09 UTC
See https://curl.se/docs/CVE-2023-32001.html.

"""
VULNERABILITY

libcurl can be told to save cookie, HSTS and/or alt-svc data to files. When doing this, it called stat() followed by fopen() in a way that made it vulnerable to a TOCTOU race condition problem.

By exploiting this flaw, an attacker could trick the victim to create or overwrite protected files holding this data in ways it was not intended to.
"""
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-10 04:39:07 UTC
Please cleanup, thanks.
Comment 2 Larry the Git Cow gentoo-dev 2023-10-11 08:41:30 UTC
The bug has been referenced in the following commit(s):

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

commit 3dfe02046c2bc76fb7e910a04702603b72fcb98c
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2023-10-11 08:40:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-11 08:41:24 +0000

    [ GLSA 202310-12 ] curl: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/887745
    Bug: https://bugs.gentoo.org/894676
    Bug: https://bugs.gentoo.org/902801
    Bug: https://bugs.gentoo.org/906590
    Bug: https://bugs.gentoo.org/910564
    Bug: https://bugs.gentoo.org/914091
    Bug: https://bugs.gentoo.org/915195
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 glsa-202310-12.xml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2024-09-16 03:50:16 UTC
Looks like the last vulnerable version was removed a while ago:

commit 0525367c10e8f29f5bb9943a1a0a2fc706069cce
Author: Matt Jolly <Matt.Jolly@footclan.ninja>
Date:   Tue Oct 10 21:16:48 2023 +1000

    net-misc/curl: drop 8.1.2

    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Closes: https://github.com/gentoo/gentoo/pull/33276
    Signed-off-by: Sam James <sam@gentoo.org>