Memory Corruption Vulnerability in Rutie Package: Unsafe Pointer Handling in parse_arguments

rutie Updated 03 Oct 2026

Summary

25/11/2024
N/A
Yes i
Unrated
Not published

RUSTSEC-2024-0448: parse_arguments reads a caller-supplied pointer as a slice. Affects rutie across 5 version ranges.

>= 0.0.0-0, < 0.10.3 >= 0.11.0, < 0.11.3 >= 0.12.0, < 0.12.1 >= 0.13.0, < 0.13.1 >= 0.14.0, < 0.14.1

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Rutie is a Rust library that facilitates the integration of Ruby and Rust, allowing developers to write Ruby extensions in Rust. It provides a safe and efficient way to call Rust code from Ruby, leveraging Rust's performance and safety features. However, a recent vulnerability has been identified in the way Rutie handles pointers in its parse_arguments function, which could lead to memory corruption issues.

Vulnerability Detail

The vulnerability arises from the parse_arguments function, which accepts a caller-supplied pointer and an argument count. It uses slice::from_raw_parts to create a slice from these inputs without validating that the pointer is non-null and properly aligned, nor does it ensure that the specified number of elements is initialized. This oversight can lead to undefined behavior, including potential crashes or memory corruption, especially when a null pointer or an invalid length is passed. The maintainer confirmed that this issue can occur when Ruby calls methods with incorrect arguments, leading to unsafe memory access.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 0.0.0-0, < 0.10.3 0.10.3
  • >= 0.11.0, < 0.11.3 0.11.3
  • >= 0.12.0, < 0.12.1 0.12.1
  • >= 0.13.0, < 0.13.1 0.13.1
  • >= 0.14.0, < 0.14.1 0.14.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, ensure that any calls to parse_arguments are made with valid, non-null pointers and correct argument counts. Implement checks in your code to validate these inputs before passing them to the function.

Conclusion

The vulnerability in the Rutie package highlights the importance of safe pointer handling in Rust. By updating to a patched version and implementing proper input validation, developers can mitigate the risks associated with this memory corruption issue.

See every vulnerability recorded for rutie →

Share this vulnerability

FAQ

The vulnerability involves unsafe handling of pointers in the parse_arguments function, which can lead to memory corruption.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The fixed versions are 0.10.3, 0.11.3, 0.12.1, 0.13.1, and 0.14.1.

Implement input validation to ensure that pointers and argument counts passed to parse_arguments are valid.

Detailed information can be found in the RustSec advisory database or the GitHub repository for Rutie.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 0.0.0-0, < 0.10.3 0.10.3
  • >= 0.11.0, < 0.11.3 0.11.3
  • >= 0.12.0, < 0.12.1 0.12.1
  • >= 0.13.0, < 0.13.1 0.13.1
  • >= 0.14.0, < 0.14.1 0.14.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback