{"id":"CVE-2026-3145","summary":"libvips matrixload.c vips_foreign_load_matrix_header memory corruption","details":"A flaw has been found in libvips up to 8.18.0. The affected element is the function vips_foreign_load_matrix_file_is_a/vips_foreign_load_matrix_header of the file libvips/foreign/matrixload.c. Executing a manipulation can lead to memory corruption. The attack needs to be launched locally. This patch is called d4ce337c76bff1b278d7085c3c4f4725e3aa6ece. A patch should be applied to remediate this issue.","modified":"2026-07-17T21:09:54.503170475Z","published":"2026-02-25T02:02:10.604Z","database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-119"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3145.json","unresolved_ranges":[{"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"},{"introduced":"8.2"},{"last_affected":"8.2"},{"introduced":"8.4"},{"last_affected":"8.4"},{"introduced":"8.5"},{"last_affected":"8.5"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://github.com/libvips/libvips/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3145.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3145"},{"type":"ADVISORY","url":"https://vuldb.com/?id.347651"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.758690"},{"type":"REPORT","url":"https://github.com/libvips/libvips/issues/4876"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.347651"},{"type":"FIX","url":"https://github.com/libvips/libvips/commit/d4ce337c76bff1b278d7085c3c4f4725e3aa6ece"},{"type":"FIX","url":"https://github.com/libvips/libvips/pull/4888"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libvips/libvips","events":[{"introduced":"0"},{"fixed":"d4ce337c76bff1b278d7085c3c4f4725e3aa6ece"}],"database_specific":{"cpe":"cpe:2.3:a:libvips:libvips:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"8.18.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["8.1","8.10","8.11","8.12","8.13","8.14","8.15","8.16","8.17","8.18.0","8.3","8.6","8.7","8.8","8.9","v8.18.0","v8.18.0-rc3","v8.18.0-rc2","v8.18.0-rc1","v8.18.0-alpha2","v8.18.0-alpha1","v8.17.0-rc1","v8.17.0","v8.17.0-test4","v8.17.0-test3","v8.17.0-test2","v8.17.0-test1","v8.16.0","v8.16.0-rc2","v8.16.0-rc1","v8.15.0","v8.15.0-rc2","v8.14.0","v8.14.0-rc1","v8.13.0","v8.13.0-rc2","v8.13.0-rc1","v8.13.0-pre1","v8.12.0","v8.12.0-rc1","v8.11.0","v8.11","v8.11.0-rc1","v8.10.6-beta2","v8.10.0","v8.10.0-rc2","v8.10.0-rc1","v8.10.0-beta2","v8.10.0-beta1","v8.9.0","v8.9.0-rc4","v8.9.0-rc3","v8.9.0-rc2","v8.9.0-rc1","v8.9.0-beta2","v8.9.0-beta1","v8.9.0-alpha1","v8.8.0-rc3","v8.8.0","v8.8.0-rc2","v8.8.0-rc1","v8.7.0","v8.7.0-rc3","v8.7.0-rc2","v8.7.0-rc1","v8.7.0-alpha2","v8.6.0","v8.6.0-beta2","v8.6.0-beta1","v8.6.0-alpha2","v8.6.0-alpha1","v8.5.3","v8.5.2","v8.5.1","v8.3.0","v8.2.2","v8.1","v8.0-beta","v7.28.0"],"database_specific":{"vanir_signatures_modified":"2026-07-15T00:14:10Z","vanir_signatures":[{"id":"CVE-2026-3145-1e4c3cfe","signature_type":"Line","signature_version":"v1","source":"https://github.com/libvips/libvips/commit/d4ce337c76bff1b278d7085c3c4f4725e3aa6ece","target":{"file":"libvips/foreign/matrixload.c"},"deprecated":false,"digest":{"line_hashes":["214137444763094919027595405206991934682","114125915424102214094943941015255073055","240227623464099024081197313043448215093","90075972502540572096863703136720591100","56619882688938754791021034650033918168","10903083153015923233814538361063596546","335913967601425406070766086758492307120","317078161876553776787656224675560684357","108688021650018986246375798821244774845","339488972693747747186842951161774281954","4471853130159302643669692878468166204","40954129459416673119987586640381411554","204474679123632465651305439243518257018","135121928896590355896168127708105478417","199362686267934192609032806378139263803","118978140758447448984422943984007965713","3859712564267575573475615035681001403","107127726650899297619048645180787554973","236752353468258317478061440098662235342","61439449913472198375666097582782687736","71308422648280875497590292553751626247","212012641635761051619653513246956545905","258763950903283639199892549237237735633","153816381251264239906348917164900966304","137707530634529074046672766073432150548","210945127218468499181505320029252210587","28789498119242513566930440120213995209","334070731203497138606498282894307450084","98943214030291583785470334570296265128"],"threshold":0.9}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/libvips/libvips/commit/d4ce337c76bff1b278d7085c3c4f4725e3aa6ece","target":{"file":"libvips/foreign/matrixload.c","function":"parse_matrix_header"},"deprecated":false,"digest":{"function_hash":"267575534050077994414209450854243099589","length":1194},"id":"CVE-2026-3145-764af691"},{"source":"https://github.com/libvips/libvips/commit/d4ce337c76bff1b278d7085c3c4f4725e3aa6ece","target":{"file":"libvips/foreign/matrixload.c","function":"vips_foreign_load_matrix_header"},"deprecated":false,"digest":{"function_hash":"274096035013621786525006410848199836078","length":820},"id":"CVE-2026-3145-9a36fa20","signature_type":"Function","signature_version":"v1"}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-3145.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X"}]}