Memory Leak Vulnerability in ruby-rmagick Package Leading to Denial of Service

ruby-rmagick Updated 02 Oct 2025

Summary

30/10/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-5349: A memory leak flaw was found in ruby-magick, an interface between Ruby and ImageMagick. This issue can lead to a denial of service (DOS) by memory exhaustion. Affects ruby-rmagick versions < 5.3.0-1. Fixed in 5.3.0-1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ruby-rmagick is a Ruby interface for the ImageMagick image processing library, enabling Ruby developers to create and manipulate images in various formats. It provides a comprehensive set of features for image processing, including image creation, transformation, and manipulation. However, a recently discovered vulnerability exposes the package to a memory leak issue, which can lead to service disruptions.

Vulnerability Detail

A memory leak flaw was identified in the ruby-rmagick package, which serves as an interface between Ruby and ImageMagick. This vulnerability can result in a denial of service (DoS) by exhausting system memory, potentially causing applications that rely on ruby-rmagick to crash or become unresponsive. The issue arises from improper memory management within the package, allowing memory to be allocated without being released, leading to increased memory consumption over time.

How To Fix

Minimum fixed version

5.3.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby-rmagick

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you are unable to update the package immediately, consider limiting the memory usage of your application or implementing monitoring tools to detect memory consumption patterns. This can help mitigate the impact of the memory leak until a proper update can be applied.

Conclusion

The memory leak vulnerability in the ruby-rmagick package poses a significant risk of denial of service due to memory exhaustion. It is crucial for users of this package to update to the patched version 5.3.0-1 to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for ruby-rmagick →

Share this vulnerability

FAQ

ruby-rmagick is a Ruby interface for the ImageMagick library, allowing developers to manipulate images within Ruby applications.

The memory leak vulnerability allows for memory to be allocated without being released, which can lead to system memory exhaustion and application crashes.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading a manifest file like package-lock.json, you can check for vulnerabilities in real-time.

The primary consequence is a denial of service (DoS), where applications using ruby-rmagick may become unresponsive due to excessive memory usage.

Yes, you can implement monitoring tools to track memory usage and limit the memory consumption of your application until you can apply the update.

Related vulnerabilities

Recent vulnerabilities recorded for ruby-rmagick.

How To Fix

Minimum fixed version

5.3.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby-rmagick

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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