{"id":"CVE-2022-1325","aliases":["DEBIAN-CVE-2022-1325","EUVD-2022-24653","GHSA-7vq8-69px-r6f8","UBUNTU-CVE-2022-1325","USN-7437-1"],"status":"published","title":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with...","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00423,"percentile":0.37073,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-770"],"published":"2022-08-31T15:33:00Z","modified":"2026-11-03T08:02:09Z","fixes":[{"ecosystem":"Debian:12","package":"cimg","fixed_in":["3.1.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"cimg","fixed_in":["3.1.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cimg","fixed_in":["3.1.6+dfsg-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","fixed_in":["2.9.4+dfsg-3ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.6+dfsg-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.4+dfsg-1build1","1.6.5+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1","1.7.9+dfsg-2ubuntu0.18.04.1","1.7.9+dfsg-2ubuntu0.18.04.2","1.7.9+dfsg-2ubuntu0.18.04.2+esm1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.4+dfsg-3ubuntu0.1~esm1"}]}],"versions":["2.9.4+dfsg-2","2.9.4+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.9+dfsg-2ubuntu0.18.04.2+esm1"}]}],"versions":["1.7.9+dfsg-2","1.7.9+dfsg-2build1","1.7.9+dfsg-2ubuntu0.18.04.1","1.7.9+dfsg-2ubuntu0.18.04.2"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.4+dfsg-3ubuntu0.1~esm1"}]}],"versions":["2.9.4+dfsg-2","2.9.4+dfsg-3"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"cimg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1+dfsg-1ubuntu0.24.04.1~esm1"}]}],"versions":["3.2.1+dfsg-1"],"bundled":2}],"products":[{"vendor":"cimg","product":"cimg"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2074549","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report"]},{"url":"https://huntr.dev/bounties/a5e4fc45-8f14-4dd1-811b-740fc50c95d2/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://github.com/GreycLab/CImg/issues/343","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/GreycLab/CImg/pull/348","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/GreycLab/CImg/commit/619cb58dd90b4e03ac68286c70ed98acbefd1c90","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-1325","tags":["x_refsource_MISC","x_transferred","Broken Link","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1325","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7vq8-69px-r6f8"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1325.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-1325","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-1325","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-1325","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7437-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-26540","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-1325","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T15:33:00Z","modified":"2024-08-03T00:03:05.399Z","cwes":["CWE-400"],"updated_at":"2026-11-02T14:34:38.581997Z"}],"euvd":[{"id":"EUVD-2022-24653","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T15:33:00Z","modified":"2024-08-03T00:03:05Z","updated_at":"2026-11-03T03:26:01.998866Z"}],"ghsa":[{"id":"GHSA-7vq8-69px-r6f8","title":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with...","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-09-01T00:00:23Z","modified":"2023-01-28T05:07:00Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:44:29.269512Z"}],"nvd":[{"id":"CVE-2022-1325","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T16:15:09.467Z","modified":"2026-06-17T04:22:13.33Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-400","CWE-770"],"updated_at":"2026-11-02T14:07:26.802986Z"}],"osv":[{"id":"DEBIAN-CVE-2022-1325","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T16:15:09.467Z","modified":"2026-11-03T08:02:09.007650862Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T08:24:50.542442Z"},{"id":"UBUNTU-CVE-2022-1325","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T16:15:00Z","modified":"2026-04-22T13:13:52.243274Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T16:53:51.630172Z"},{"id":"CVE-2022-1325","description":"A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.","status":"published","published":"2022-08-31T15:33:00Z","modified":"2026-10-28T10:28:36.021767562Z","cwes":["CWE-400"],"updated_at":"2026-11-02T15:44:23.245966Z"},{"id":"USN-7437-1","title":"cimg vulnerabilities","description":"It was discovered that the CImg library did not properly check the size\nof images before loading them. An attacker could possibly use this issue\nto cause a denial of service. This issue only affected Ubuntu 22.04 LTS.\n(CVE-2022-1325)\n\nIt was discovered that the CImg library did not correctly handle certain\nmemory operations, which could lead to a buffer overflow. An attacker\ncould possibly use this issue to execute arbitrary code or cause a denial\nof service. (CVE-2024-26540)\n","status":"published","published":"2025-04-15T02:04:00Z","modified":"2026-04-27T17:54:37.256565Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
