2024-04-16 14:26:14 +00:00

130 lines
7.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Definition": [
{
"ID": "oval:org.altlinux.errata:def:20242838",
"Version": "oval:org.altlinux.errata:def:20242838",
"Class": "patch",
"Metadata": {
"Title": "ALT-PU-2024-2838: package `rust` update to version 1.72.1-alt0.c10.1",
"AffectedList": [
{
"Family": "unix",
"Platforms": [
"ALT Linux branch c10f1"
],
"Products": [
"ALT SP Workstation",
"ALT SP Server"
]
}
],
"References": [
{
"RefID": "ALT-PU-2024-2838",
"RefURL": "https://errata.altlinux.org/ALT-PU-2024-2838",
"Source": "ALTPU"
},
{
"RefID": "CVE-2023-38497",
"RefURL": "https://nvd.nist.gov/vuln/detail/CVE-2023-38497",
"Source": "CVE"
},
{
"RefID": "CVE-2023-40030",
"RefURL": "https://nvd.nist.gov/vuln/detail/CVE-2023-40030",
"Source": "CVE"
}
],
"Description": "This update upgrades rust to version 1.72.1-alt0.c10.1. \nSecurity Fix(es):\n\n * CVE-2023-38497: Cargo downloads the Rust projects dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one's system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`.\n\n * CVE-2023-40030: Cargo downloads a Rust projects dependencies and compiles the project. Starting in Rust 1.60.0 and prior to 1.72, Cargo did not escape Cargo feature names when including them in the report generated by `cargo build --timings`. A malicious package included as a dependency may inject nearly arbitrary HTML here, potentially leading to cross-site scripting if the report is subsequently uploaded somewhere. The vulnerability affects users relying on dependencies from git, local paths, or alternative registries. Users who solely depend on crates.io are unaffected.\n\nRust 1.60.0 introduced `cargo build --timings`, which produces a report of how long the different steps of the build process took. It includes lists of Cargo features for each crate. Prior to Rust 1.72, Cargo feature names were allowed to contain almost any characters (with some exceptions as used by the feature syntax), but it would produce a future incompatibility warning about them since Rust 1.49. crates.io is far more stringent about what it considers a valid feature name and has not allowed such feature names. As the feature names were included unescaped in the timings report, they could be used to inject Javascript into the page, for example with a feature name like `features = [\"\u003cimg src='' onerror=alert(0)\"]`. If this report were subsequently uploaded to a domain that uses credentials, the injected Javascript could access resources from the website visitor.\n\nThis issue was fixed in Rust 1.72 by turning the future incompatibility warning into an error. Users should still exercise care in which package they download, by only including trusted dependencies in their projects. Please note that even with these vulnerabilities fixed, by design Cargo allows arbitrary code execution at build time thanks to build scripts and procedural macros: a malicious dependency will be able to cause damage regardless of these vulnerabilities. crates.io has server-side checks preventing this attack, and there are no packages on crates.io exploiting these vulnerabilities. crates.io users still need to excercise care in choosing their dependencies though, as remote code execution is allowed by design there as well.",
"Advisory": {
"From": "errata.altlinux.org",
"Severity": "High",
"Rights": "Copyright 2024 BaseALT Ltd.",
"Issued": {
"Date": "2024-03-13"
},
"Updated": {
"Date": "2024-03-13"
},
"BDUs": null,
"CVEs": [
{
"ID": "CVE-2023-38497",
"CVSS3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
"CWE": "CWE-278",
"Href": "https://nvd.nist.gov/vuln/detail/CVE-2023-38497",
"Impact": "High",
"Public": "20230804"
},
{
"ID": "CVE-2023-40030",
"CVSS3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"CWE": "CWE-79",
"Href": "https://nvd.nist.gov/vuln/detail/CVE-2023-40030",
"Impact": "Low",
"Public": "20230824"
}
],
"AffectedCPEs": {
"CPEs": [
"cpe:/o:alt:spworkstation:10",
"cpe:/o:alt:spserver:10"
]
}
}
},
"Criteria": {
"Operator": "AND",
"Criterions": [
{
"TestRef": "oval:org.altlinux.errata:tst:4001",
"Comment": "ALT Linux must be installed"
}
],
"Criterias": [
{
"Operator": "OR",
"Criterions": [
{
"TestRef": "oval:org.altlinux.errata:tst:20242838001",
"Comment": "clippy is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838002",
"Comment": "rust is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838003",
"Comment": "rust-analyzer is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838004",
"Comment": "rust-cargo is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838005",
"Comment": "rust-cargo-doc is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838006",
"Comment": "rust-doc is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838007",
"Comment": "rust-gdb is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838008",
"Comment": "rust-src is earlier than 1:1.72.1-alt0.c10.1"
},
{
"TestRef": "oval:org.altlinux.errata:tst:20242838009",
"Comment": "rustfmt is earlier than 1:1.72.1-alt0.c10.1"
}
]
}
]
}
}
]
}