CVE-2023-5349: rmagick · Memory Leak
Affects rmagickSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 30 Oct 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
Organizations should proactively monitor memory usage of applications using rmagick and implement resource limits at the process or container level to prevent uncontrolled memory consumption. Applying rate limiting or input validation on image processing endpoints can reduce the risk of exploitation by limiting the volume and size of images processed. It is critical to track vendor advisories and update rmagick to patched versions as soon as they become available. In the absence of a patch, consider isolating image processing workloads in separate environments with strict memory quotas and restart policies to contain potential DoS effects. Reviewing application code for proper memory management and avoiding unnecessary image processing can also reduce exposure. Additionally, implementing robust logging and alerting on abnormal memory usage patterns will enable early detection of exploitation attempts. Network-level protections such as Web Application Firewalls (WAFs) can help block suspicious traffic targeting image processing endpoints. Finally, educating developers about secure usage of rmagick and ImageMagick can prevent inadvertent introduction of similar issues.
Description
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.
References
- access.redhat.com/security/cve/CVE-2023-5349 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2247064 (opens in a new tab)
- github.com/rmagick/rmagick/issues/1401 (opens in a new tab)
- github.com/rmagick/rmagick/pull/1406 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3XMQ2KWPYGT447EKPENGXXHKAQ5NUWF/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2023/10/msg00030.html (opens in a new tab)