Memory Manipulation Vulnerability in ImageMagick from ImageMagick
CVE-2025-57807
What is CVE-2025-57807?
ImageMagick, a widely used open-source software for image editing and manipulation, has a vulnerability present in versions prior to 14.8.2. This vulnerability arises from the insecure handling of stream offsets by the functions SeekBlob() and WriteBlob(). Specifically, SeekBlob() allows modification of the stream offset beyond its current boundaries without proper capacity checks. Consequently, this enables an unsafe memory write operation, where data may be copied to memory locations outside of the allocated block when a certain offset is exceeded. This flaw may lead to unpredictable behavior, including potential exploitation through crafted images. Users are advised to update to version 14.8.2 or later to mitigate associated risks.
Affected Version(s)
ImageMagick < 14.8.2