CVE-2018-1000622
published 2018-07-09CVE-2018-1000622: The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that…
PriorityP336high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
1.82%
76.2th percentile
The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that can result in local code execution as a different user. This attack appear to be exploitable via using the --plugin flag without the --plugin-path flag. This vulnerability appears to have been fixed in 1.27.1.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | rustc | < rustc 1.27.1+dfsg1-1~exp1 (bookworm) | rustc 1.27.1+dfsg1-1~exp1 (bookworm) |
| rust-lang | rust | 0.8 – 1.27.0 | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-6f94-33qx-gqcf: The Rust Programming Language rustdoc version Between 0
ghsa_unreviewed·2022-05-13
CVE-2018-1000622 [HIGH] CWE-427 GHSA-6f94-33qx-gqcf: The Rust Programming Language rustdoc version Between 0
The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that can result in local code execution as a different user. This attack appear to be exploitable via using the --plugin flag without the --plugin-path flag. This vulnerability appears to have been fixed in 1.27.1.
OSV
CVE-2018-1000622: The Rust Programming Language rustdoc version Between 0
osv·2018-07-09·CVSS 7.8
CVE-2018-1000622 [HIGH] CVE-2018-1000622: The Rust Programming Language rustdoc version Between 0
The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that can result in local code execution as a different user. This attack appear to be exploitable via using the --plugin flag without the --plugin-path flag. This vulnerability appears to have been fixed in 1.27.1.
Red Hat
rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
vendor_redhat·2018-07-08·CVSS 7.8
CVE-2018-1000622 [HIGH] CWE-426 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that can result in local code execution as a different user. This attack appear to be exploitable via using the --plugin flag without the --plugin-path flag. This vulnerability appears to have been fixed in 1.27.1.
Debian
CVE-2018-1000622: rustc - The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a ...
vendor_debian·2018·CVSS 7.8
CVE-2018-1000622 [HIGH] CVE-2018-1000622: rustc - The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a ...
The Rust Programming Language rustdoc version Between 0.8 and 1.27.0 contains a CWE-427: Uncontrolled Search Path Element vulnerability in rustdoc plugins that can result in local code execution as a different user. This attack appear to be exploitable via using the --plugin flag without the --plugin-path flag. This vulnerability appears to have been fixed in 1.27.1.
Scope: local
bookworm: resolved (fixed in 1.27.1+dfsg1-1~exp1)
bullseye: resolved (fixed in 1.27.1+dfsg1-1~exp1)
forky: resolved (fixed in 1.27.1+dfsg1-1~exp1)
sid: resolved (fixed in 1.27.1+dfsg1-1~exp1)
trixie: resolved (fixed in 1.27.1+dfsg1-1~exp1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [fedora-all]
bugzilla·2018-07-08·CVSS 7.8
CVE-2018-1000622 [HIGH] CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [fedora-all]
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE
Bugzilla
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [epel-7]
bugzilla·2018-07-08·CVSS 7.8
CVE-2018-1000622 [HIGH] CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [epel-7]
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Bugzilla
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
bugzilla·2018-07-02·CVSS 7.8
CVE-2018-1000622 [HIGH] CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
CVE-2018-1000622 rust: rustdoc loads plugins from world writable directory allowing for arbitrary code execution
rustdoc in versions of Rust through 1.26 loads plugins by default from the world writable directory, /tmp/rustdoc/plugins/. An attacker could exploit this by writing a malicious library to this directory allowing for invocations of rustdoc to execute arbitrary code.
Discussion:
IMO this has low impact. rustdoc will only load external libraries if given the --plugins option, and /tmp/rustdoc/plugins/ is only used if not given a --plugin-path. Both of these plugin options are deprecated and print warnings as such when you use them.
$ rustdoc foo/src/lib.rs --plugin-path /dev/null
WARNING: the 'plugin-path' flag is considered deprecated
WARNING: please see https://github.com/ru
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00076.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-10/msg00006.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-10/msg00031.htmlhttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/4ybxYLTtXuMhttps://security.gentoo.org/glsa/201812-11http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00076.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-10/msg00006.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-10/msg00031.htmlhttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/4ybxYLTtXuMhttps://security.gentoo.org/glsa/201812-11
2018-07-09
Published