{"id":"CVE-2025-54575","published":"2025-07-30T19:55:16Z","modified":"2025-07-30T19:59:35Z","title":"ImageSharp Triggers an Infinite Loop in its GIF Decoder When Skipping Malformed Comment Extension Blocks","vendor":"SixLabors","product":"ImageSharp","tier":"tail","description":{"text":"ImageSharp is a 2D graphics library. In versions below 2.1.11 and 3.0.0 through 3.1.10, a specially crafted GIF file containing a malformed comment extension block (with a missing block terminator) can cause the ImageSharp GIF decoder to enter an infinite loop while attempting to skip the block. This leads to a denial of service. Applications processing untrusted GIF input should upgrade to a patched version. This issue is fixed in versions 2.1.11 and 3.1.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00449,"percentile":0.39869,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-rxmq-m78w-7wmc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SixLabors/ImageSharp/issues/2953","tags":["x_refsource_MISC"]},{"url":"https://github.com/SixLabors/ImageSharp/commit/55e49262df9a057dff9b7807ed1b7bdb49187c3f","tags":["x_refsource_MISC"]},{"url":"https://github.com/SixLabors/ImageSharp/commit/833f3ceec35af6b775950e06f03b934546cefbf6","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":7.97},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"sixlabors","affectedVersions":[{"vendor":"SixLabors","product":"ImageSharp","versions":["< 2.1.11",">= 3.0.0, < 3.1.11"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-30T19:59:26.928297Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"SixLabors.ImageSharp","vulnerableRanges":["<2.1.11",">=3.0.0, <3.1.11"],"patched":["2.1.11","3.1.11"],"from":["GHSA-rxmq-m78w-7wmc"],"provenance":"source"}],"summary":{"text":"The ImageSharp 2D graphics library's GIF decoder, in versions below 2.1.11 and from 3.0.0 through 3.1.10, mishandles a malformed comment extension block that lacks a block terminator. An attacker can supply a crafted GIF file that causes the decoder to loop indefinitely while skipping that block, producing a denial of service, with no authentication, user interaction or special configuration required beyond the application processing untrusted GIF input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:49Z"},"euvd":{"id":"EUVD-2025-23196","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sixlabors-imagesharp-cve-2024-32035","parents":[{"from":"CVE-2024-41132","to":"CVE-2025-54575","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/ImageSharp/Formats/Gif/GifDecoderCore.cs"],"commits":["https://github.com/SixLabors/ImageSharp/commit/59de13c8cc47f2b402e2c43aa7024511d029d515","https://github.com/SixLabors/ImageSharp/commit/9816ca45016c5d3859986f3c600e8934bc450a56","https://github.com/SixLabors/ImageSharp/commit/55e49262df9a057dff9b7807ed1b7bdb49187c3f","https://github.com/SixLabors/ImageSharp/commit/833f3ceec35af6b775950e06f03b934546cefbf6"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-41131","published":"2024-07-22","fixed":"3.1.5","kev":false},{"cve":"CVE-2024-41132","published":"2024-07-22","fixed":"3.1.5","kev":false},{"cve":"CVE-2025-27598","published":"2025-03-06","fixed":"3.1.7","kev":false,"link":{"from":"CVE-2025-27598","to":"CVE-2025-54575","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:SixLabors.ImageSharp","fromFixed":"3.1.7","toFixed":"3.1.11","daysApart":146},{"kind":"version-step","provenance":"source","package":"NuGet:SixLabors.ImageSharp","fromFixed":"2.1.10","toFixed":"2.1.11","daysApart":146}]}},{"cve":"CVE-2025-54575","published":"2025-07-30","fixed":"3.1.11","kev":false},{"cve":"CVE-2026-106118","published":"2026-10-06","fixed":"4.1.1","kev":false},{"cve":"CVE-2026-106110","published":"2026-10-06","fixed":"4.1.2","kev":false},{"cve":"CVE-2026-106111","published":"2026-10-06","fixed":"4.1.2","kev":false}],"package":"NuGet:SixLabors.ImageSharp"}}