{"id":"CVE-2026-112902","summary":"Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags","details":"Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.","aliases":["BIT-pillow-2026-112902","GHSA-xvh5-g6gv-559v","PYSEC-2026-4363"],"modified":"2026-11-17T13:40:51.025109478Z","published":"2026-11-05T20:38:07.769Z","related":["SUSE-SU-2026:24656-1","SUSE-SU-2026:24701-1","SUSE-SU-2026:5038-1","SUSE-SU-2026:5194-1","openSUSE-SU-2026:12251-1","openSUSE-SU-2026:22246-1","openSUSE-SU-2026:22301-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-686"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112902.json"},"references":[{"type":"WEB","url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112902.json"},{"type":"ADVISORY","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112902"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/pull/10227"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python-pillow/pillow","events":[{"introduced":"0"},{"fixed":"293218ad059d994baf1777d882911bed6a49704a"},{"fixed":"570df030c0d30c2bf5336b2ab59f3902d8ab0b6d"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"13.0.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"570df030c0d30c2bf5336b2ab59f3902d8ab0b6d"}]},{"range":[{"fixed":"293218ad059d994baf1777d882911bed6a49704a"}],"source":"REFERENCES_TAG","original_tag":"13.0.0"}]}}],"versions":["12.3.0","12.2.0","12.1.0","12.0.0","11.3.0","11.2.1","11.1.0","11.0.0","10.4.0","10.3.0","10.2.0","10.1.0","10.0.0","9.5.0","9.4.0","9.3.0","9.2.0","9.1.0","9.0.0","8.4.0","8.3.0","8.2.0","8.1.0","8.0.0","7.2.0","7.1.0","7.0.0","6.2.0","6.1.0","6.0.0","5.4.0","5.3.0","5.2.0","5.1.0","5.0.0","4.3.0","4.2.0","4.1.0","4.0.0","4.0.0a","3.4.0","3.3.0","3.2.0","3.1.0","3.1.0-rc1","2.9.0","2.9.0.dev2","2.9.0.dev1","2.9.0.dev0","2.8.1","2.8.0","2.7.0","2.5.0","2.3.0","2.2.1","2.2.0","2.1.0","2.0.0","1.7.8","1.7.7","1.2","1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-112902.json","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://github.com/python-pillow/pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d","target":{"file":"src/libImaging/TiffDecode.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["42345819334958621003018187150678158408","303869106318999777827028131108887788492","334472524397288459555396978597240563238"]},"id":"CVE-2026-112902-21279f4a"},{"source":"https://github.com/python-pillow/pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d","target":{"file":"src/libImaging/TiffDecode.c"},"deprecated":false,"digest":{"line_hashes":["118390841253538294985025112245904824066","185438035307531056132724964770939835128","131760503468157407596521363272888970227"],"threshold":0.9},"id":"CVE-2026-112902-272c4ed7","signature_type":"Line","signature_version":"v1"},{"target":{"file":"src/encode.c"},"deprecated":false,"digest":{"line_hashes":["31663412072167567292071745918771911969","156407126177337599133681118550762429047","168102959833345429135270736149579887239","222833171588469118095547958305824666752","288452519204264922779602858624427334446","160515643009175413724317994799276623589","90862337004545232035123727042791848674","338563970373103409383744120760322714496","297945895272607977117233708498414655770","266287466044624288992283490921648757506","85495679808000838609682773166131436629","140427884361702632201978704930419630211","328965028245693881223838630900833142750","317054329359979277355042912922831355044","282643644393118644121483899786509922545","250524798063355812560065161740980194783","34497289419477136010998666322502280067","2805758609855817151558427205128647790","158398276267281161875762842710672995072","203543303376493210536631408402965842892","178587616825665349604274822679730069020","299684912966120883888708929775822965435","264977409308143687859225540828082075664","272922678930543919820023882596461743093","332685200689475446204219949001249541717","153106909487626332141558193159943284364","245055199906934348685886930991309375649","220698390134128230952256140361292353443","276476372720168312181022489186403322735","152977170281505624254778545732031163547","320820418042134761145346990863434681890","155603812962371314580891009414122727015","43264574558648579476849654556173335008","132259914308561545897836904661970549950","153036591044858586819812828436598456280","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","125388874829374840999328262645264655399","233289927763741350619565275907631821688","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","226551325755512062499117155711074308325","137042560948371429005166857863817156496","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","82749340416082171130650061392001737877","247291251810524292109007536747681704526","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","108677747470700341720258499553679343597","225141265747668661975709403358554907282","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","100538515522810019787213940203264292472","106537646735049083042979393621747908319","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","210206773521115290482100682274357166436","257472424208648556249289125861503399342","310319944975817709166556493084843504017","337300229853968658243863417202280999382","219870620128357392613503972514235796150","85340654675027211831270861427910320607","225141658808316735332962235943490380849","41623671230694014818920495563135388328","324147261030337942351042535251112000861","35226059889809954777758679558399136055","283160873378947736008267175874828654381","184637128350686623209933795558161238403","269540723257028677635949960941228675709","251705034517598296573889117408188772415"],"threshold":0.9},"id":"CVE-2026-112902-6cad89da","signature_type":"Line","signature_version":"v1","source":"https://github.com/python-pillow/pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d"},{"deprecated":false,"digest":{"function_hash":"30668985768680872181706991011484992181","length":7617},"id":"CVE-2026-112902-ff572460","signature_type":"Function","signature_version":"v1","source":"https://github.com/python-pillow/pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d","target":{"file":"src/encode.c","function":"PyImaging_LibTiffEncoderNew"}}],"vanir_signatures_modified":"2026-11-12T07:07:35Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N"}]}