Advisory

RUSTSEC-2021-0102

Also known as: CVE-2021-31154, GHSA-pp74-39w2-v4w9

Summary

Permissions bypass in pleaser

Details

pleaseedit in pleaser before 0.4 uses predictable temporary filenames in /tmp and the target directory. This allows a local attacker to gain full root privileges by staging a symlink attack.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-05-27 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

pleaser

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p pleaser --precise 0.4.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences