ImageMagick is free and open-source software used for editing and manipulating digital images. ImageMagick versions lower than 14.8.2 include insecure functions: SeekBlob(), which permits advancing the stream offset beyond the current end without increasing capacity, and WriteBlob(), which then expands by quantum + length (amortized) instead of offset + length, and copies to data + offset. When offset ≫ extent, the copy targets memory beyond the allocation, producing a deterministic heap write on 64-bit builds. No 2⁶⁴ arithmetic wrap, external delegates, or policy settings are required. This is fixed in version 14.8.2.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-122",
"CWE-131",
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57807.json"
}[
{
"target": {
"file": "MagickCore/blob.c"
},
"digest": {
"line_hashes": [
"100476764175151991222149130987199827925",
"92785322962743389101473495904931765815",
"125686757000014787383074475436648045798",
"2124629187688889656854694912686973064",
"242214955069458195335352107732413637614",
"94378891121214781573900614182793341752",
"44970812731235467434616177171554217919",
"317605189518340976798661823859495973768",
"241526835624000866647854392509153882907",
"260100809305973684447450980016314611935",
"112320140872237825135452396504285661344",
"3039276986389726011087757115689398091",
"85026170500836170972719814473996073573"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2025-57807-3ed78971"
},
{
"target": {
"function": "WriteBlob",
"file": "MagickCore/blob.c"
},
"digest": {
"length": 4125.0,
"function_hash": "210785956699503906010915905180686503447"
},
"signature_version": "v1",
"source": "https://github.com/imagemagick/imagemagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2025-57807-b1850eec"
}
]