Advisory

RUSTSEC-2024-0448

Also known as: None

Summary

parse_arguments reads a caller-supplied pointer as a slice

Details

parse_arguments is safe. It takes arguments: *const AnyObject and argc, and calls slice::from_raw_parts(arguments, argc as usize).

It does not check that arguments is non-null and aligned, or that argc elements are initialized. Safe Rust can pass a null pointer or a length past the allocation. The maintainer confirmed this on 2026-10-03, including a debug abort on Rust 1.78+ when Ruby calls an arity -1 method (to_s via format, puts, or Array#join) with a NULL argv and argc of 0.

Severity

Not rated by the source.

Dates

Published
2024-11-25 12:00 UTC
Modified
2026-10-03 08:15 UTC

Affected packages and fixes

rutie

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.10.3, introduced 0.11.0, fixed 0.11.3, introduced 0.12.0, fixed 0.12.1, introduced 0.13.0, fixed 0.13.1, introduced 0.14.0, fixed 0.14.1 (semver)

Fixed versions

0.10.3, 0.11.3, 0.12.1, 0.13.1, 0.14.1

Fix

  • Fixed version 0.10.3
    cargo update -p rutie --precise 0.10.3
  • Fixed version 0.11.3
    cargo update -p rutie --precise 0.11.3
  • Fixed version 0.12.1
    cargo update -p rutie --precise 0.12.1
  • Fixed version 0.13.1
    cargo update -p rutie --precise 0.13.1
  • Fixed version 0.14.1
    cargo update -p rutie --precise 0.14.1

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