{"id":"CVE-2023-5349","aliases":["DEBIAN-CVE-2023-5349","DLA-3625-1","DLA-4433-1","EUVD-2023-2732","GHSA-frgf-8jr5-j2jv","UBUNTU-CVE-2023-5349","USN-6960-1"],"status":"published","title":"Draw while calling getdrawinfo()","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00667,"percentile":0.52201,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-401"],"published":"2023-10-22T00:00:00Z","modified":"2026-10-28T02:30:40Z","fixes":[{"ecosystem":"RubyGems","package":"rmagick","fixed_in":["5.3.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"ruby-rmagick","fixed_in":["5.3.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ruby-rmagick","fixed_in":["5.3.0-1"],"sources":["osv"]},{"ecosystem":"Debian:10","package":"ruby-rmagick","fixed_in":["2.16.0-6+deb10u1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"ruby-rmagick","fixed_in":["2.16.0-7+deb11u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"ruby-rmagick","fixed_in":["2.16.0-6ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"ruby-rmagick","fixed_in":["4.2.3-2ubuntu0.22.04.1~esm2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-2","5.3.0-1","5.3.0-2","6.0.1-1","6.0.1-2","6.0.1-3","7.0.4-1","7.1.6-1"]},{"source":"osv","ecosystem":"Debian:13","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.0-6+deb10u1"}]}],"versions":["2.16.0-6"]},{"source":"osv","ecosystem":"Debian:11","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.0-7+deb11u1"}]}],"versions":["2.16.0-7"]},{"source":"osv","ecosystem":"RubyGems","package":"rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.0"}]}],"versions":["1.10.0","1.10.1","1.11.0","1.11.1","1.12.0","1.13.0","1.14.0","1.14.1","1.15.0","1.15.1","1.15.10","1.15.11","1.15.12","1.15.13","1.15.14","1.15.15","1.15.16","1.15.17","1.15.2","1.15.3","1.15.4","1.15.5","1.15.6","1.15.7","1.15.8","1.15.9","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.8.2","1.8.3","1.9.0","1.9.1","1.9.2","1.9.3","2.0.0","2.1.0","2.10.0","2.11.0","2.11.1","2.12.0","2.12.1","2.12.2","2.13.1","2.13.2","2.13.3","2.13.3.rc1","2.13.4","2.14.0","2.15.0","2.15.1","2.15.2","2.15.3","2.15.4","2.16.0","2.2.0","2.2.2","2.3.0","2.4.0","2.5.0","2.5.1","2.5.2","2.6.0","2.7.0","2.7.1","2.7.2","2.8.0","2.9.0","2.9.1","2.9.2","3.0.0","3.1.0","3.2.0","4.0.0","4.1.0","4.1.0.rc1","4.1.0.rc2","4.1.1","4.1.2","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.3.0","5.0.0","5.1.0","5.2.0"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.0-6ubuntu0.1"}]}],"versions":["2.16.0-6","2.16.0-6build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.3-2ubuntu0.22.04.1~esm2"}]}],"versions":["2.16.0-7","4.2.3-2","4.2.3-2build1","4.2.3-2build2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.0-6ubuntu0.1"}]}],"versions":["2.16.0-6","2.16.0-6build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"ruby-rmagick","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.3-2ubuntu0.22.04.1~esm2"}]}],"versions":["2.16.0-7","4.2.3-2","4.2.3-2build1","4.2.3-2build2"]}],"products":[{"vendor":"fedora","product":"fedora"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"red hat","product":"red hat 3scale api management platform 2"},{"vendor":"rmagick","product":"rmagick"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2023-5349","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2247064","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/rmagick/rmagick/issues/1401","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/rmagick/rmagick/pull/1406","tags":["x_transferred","Patch","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3XMQ2KWPYGT447EKPENGXXHKAQ5NUWF/","tags":["x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00030.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00003.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5349","tags":["advisory"]},{"url":"https://github.com/rmagick/rmagick/commit/02f37ca0d6c2b8fff316e0668efa690f5c90a429","tags":["web"]},{"url":"https://github.com/rmagick/rmagick/commit/fec7a7e639ae565386f7615155dbcf49b957b64a","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-frgf-8jr5-j2jv","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rmagick/CVE-2023-5349.yml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S3XMQ2KWPYGT447EKPENGXXHKAQ5NUWF","tags":["web"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://packages.fedoraproject.org/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5349.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-5349","tags":["advisory"]},{"url":"https://github.com/rmagick/rmagick","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2023-5349","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-5349","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6960-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-5349","title":"Draw while calling getdrawinfo()","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.","status":"published","published":"2023-10-30T20:27:59.972Z","modified":"2026-01-05T18:05:08.319Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-401"],"updated_at":"2026-11-02T14:35:17.149492Z"}],"euvd":[{"id":"EUVD-2023-2732","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.","status":"published","published":"2023-10-30T20:27:59Z","modified":"2026-01-05T18:05:08Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T19:48:55.889439Z"}],"ghsa":[{"id":"GHSA-frgf-8jr5-j2jv","title":"memory leak flaw was found in ruby-magick","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.","status":"published","published":"2023-10-30T21:33:39Z","modified":"2026-01-05T22:34:49Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400","CWE-401"],"updated_at":"2026-11-02T14:39:15.106458Z"}],"nvd":[{"id":"CVE-2023-5349","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.","status":"published","published":"2023-10-30T21:15:07.643Z","modified":"2026-06-17T06:48:23.96Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","level":"low","assessor":"primary"}],"cwes":["CWE-401"],"updated_at":"2026-11-02T14:08:41.047232Z"}],"osv":[{"id":"CVE-2023-5349","title":"Draw while calling getdrawinfo()","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.","status":"published","published":"2023-10-30T20:27:59.972Z","modified":"2026-10-28T02:30:40.147159327Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-401"],"updated_at":"2026-11-02T15:44:36.109881Z"},{"id":"DEBIAN-CVE-2023-5349","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.","status":"published","published":"2023-10-30T21:15:07.643Z","modified":"2026-10-26T18:01:30.80142628Z","cvss":[{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T15:45:41.220655Z"},{"id":"GHSA-frgf-8jr5-j2jv","title":"memory leak flaw was found in ruby-magick","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.","status":"published","published":"2023-10-30T21:33:39Z","modified":"2026-06-08T23:16:29Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400","CWE-401"],"updated_at":"2026-11-02T15:46:46.760785Z"},{"id":"UBUNTU-CVE-2023-5349","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.","status":"published","published":"2023-10-30T21:15:00Z","modified":"2026-02-04T04:04:06.909036Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T16:54:32.299999Z"},{"id":"DLA-3625-1","title":"ruby-rmagick - security update","status":"published","published":"2023-10-22T00:00:00Z","modified":"2026-03-09T01:21:15.793911Z","updated_at":"2026-11-02T15:46:12.203458Z"},{"id":"DLA-4433-1","title":"ruby-rmagick - security update","status":"published","published":"2026-01-06T00:00:00Z","modified":"2026-01-06T00:00:00Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"USN-6960-1","title":"ruby-rmagick vulnerability","description":"Nick Browning discovered that RMagick incorrectly handled memory under \ncertain operations. An attacker could possibly use this issue to cause \na denial of service through memory exhaustion.\n","status":"published","published":"2024-08-14T16:16:36Z","modified":"2026-04-27T17:25:02.6367Z","updated_at":"2026-11-02T16:58:17.914523Z"}]}}
