Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911685 (CVE-2023-38497) - <dev-lang/rust-1.71.1 <dev-lang/rust-bin-1.71.1: Cargo does not respect umask
Summary: <dev-lang/rust-1.71.1 <dev-lang/rust-bin-1.71.1: Cargo does not respect umask
Status: IN_PROGRESS
Alias: CVE-2023-38497
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://blog.rust-lang.org/2023/08/03...
Whiteboard: B3 [glsa?]
Keywords: PullRequest
Depends on: 913962
Blocks:
  Show dependency tree
 
Reported: 2023-08-04 01:16 UTC by Sam James
Modified: 2024-02-13 02:52 UTC (History)
6 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-08-04 01:16:41 UTC
From https://blog.rust-lang.org/2023/08/03/Rust-1.71.1.html:
"""
Rust 1.71.1 fixes Cargo not respecting the umask when extracting dependencies, which could allow a local attacker to edit the cache of extracted source code belonging to another local user, potentially executing code as another user. This security vulnerability is tracked as CVE-2023-38497, and you can read more about it on the advisory we published earlier today. We recommend all users to update their toolchain as soon as possible.
"""

See also: https://blog.rust-lang.org/2023/08/03/cve-2023-38497.html.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-04 01:17:00 UTC
Note that may need to backport https://github.com/rust-lang/rust/pull/114440 as well...
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-04 16:48:11 UTC
commit 9bd0a1774d10a17f7a311813b314fee6953eb49d
Author: WANG Xuerui <xen0n@gentoo.org>
Date:   Fri Aug 4 15:20:57 2023 +0800

    sys-devel/rust-std: add 1.71.1

    Closes: https://github.com/gentoo/gentoo/pull/32170
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

commit 1ee36a35ed4404e95cb88a69e745580f2a5d0c73
Author: WANG Xuerui <xen0n@gentoo.org>
Date:   Fri Aug 4 15:19:58 2023 +0800

    virtual/rust: add 1.71.1

    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

commit d7081c418d324fefef6d2e671bd92a84091f989c
Author: WANG Xuerui <xen0n@gentoo.org>
Date:   Fri Aug 4 15:19:28 2023 +0800

    dev-lang/rust: add 1.71.1

    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

commit e73ed087dff62bccf07ccb56a8025940701efaa2
Author: WANG Xuerui <xen0n@gentoo.org>
Date:   Fri Aug 4 15:06:57 2023 +0800

    dev-lang/rust-bin: add 1.71.1

    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Comment 3 Hans de Graaff gentoo-dev Security 2024-02-10 15:46:06 UTC
commit d4946c5f8d3fa1aec5e5d4d3f64971d89958fde3
Author: Matt Turner <mattst88@gentoo.org>
Date:   Wed Jan 24 12:17:38 2024 -0500

    dev-lang/rust: Drop old versions