Advisory

RUSTSEC-2022-0088

Also known as: CVE-2022-39215, GHSA-28m8-9j7v-x499

Summary

tauri's readDir endpoint allows possible enumeration outside of filesystem scope

Details

It is possible for readDir to incorrectly enumerate files from a symlinked directory if called recursively when specifying an empty string for the dir parameter as outlined in this issue.

This is corrected in this PR by checking if a directory is a symlink before reading from it.

Severity

Medium Basis: CVSS v3 score 5.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Dates

Published
2022-08-07 12:00 UTC
Modified
2023-11-08 04:10 UTC

Affected packages and fixes

tauri

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.0.6 (semver)

Fixed versions

1.0.6

Fix

  • Fixed version 1.0.6
    cargo update -p tauri --precise 1.0.6

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