An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.
[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-20224-daeb4ada",
"digest": {
"line_hashes": [
"139892271655436340699810948569907387715",
"8073069982342290224176713460523890186",
"216580484006097267394308153814542654887",
"301322264851573856768673248152078345283",
"327246808499009136041204877605500304787",
"178634195600065626170028627271882695543",
"208434165566334002233219020187139249965",
"210973032889484569586905829462989601926",
"289747771874893091440455418572503665068",
"59976055665224309712750295940458006764",
"111384749481747097191705007332971480182",
"331363762817259058385671483830919161092",
"162964226722790546120374139402496632838",
"50009677496338235310272810907551082341",
"230857703329152288000177511980612579446",
"323885976672510390021589726237710254753",
"237310716515105270576396074887560027065",
"193958967121893679156115646445794541215",
"327108289814314618723550842632157526855",
"18844902875906242798435906399772147364",
"38646902750912928567503687170928346986",
"141966453515207385387130021288967317877",
"207143701347306052246555371200396766942",
"213911666841541311110944986712569936893",
"113437004328350645135169795506416148356",
"164439460450226269603917904577859597066",
"190905546998074288092164341915749407163",
"202123408966448367990509752751056603990",
"89114815901601124562120202355064972109",
"114956721865740514056553884656187603125",
"85098243534327617435320973995526597593",
"270205806387676454227446674446148730975",
"291433454245051451616953219325832278144",
"30178621205767171815933864281994643905",
"167302762103572061913856503260197308042",
"67241203523820054284618570358106033715",
"175661528365926389804640880337327709950",
"223165953569714256737071215043412363318",
"117966181147198184739628270649132200220",
"620907335210931546312638705122953204",
"231248728576981368063073232549380068513",
"270205806387676454227446674446148730975",
"15731471786797568452747704921714147964",
"227073766215482191865960758345192097320",
"222543662946336074688080006318353635027",
"263481576960644357003394000332203412344",
"180908170234596781057432525252089479865"
],
"threshold": 0.9
},
"source": "https://github.com/imagemagick/imagemagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6",
"signature_version": "v1",
"target": {
"file": "MagickCore/quantum-export.c"
}
}
]
[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-20224-a53d7384",
"digest": {
"line_hashes": [
"53979216902395711810582027041982694108",
"26092895969679948176212489447990801405",
"163800926783895761033016586624063016904",
"73077941318980715110765656444941010961",
"251851459679205400807890423117256242356",
"185200187828425631190265903610090034950",
"133084714624143962526935418281808115457",
"264423585884666182462834956125338510233",
"42476773575321380112022401025690763883",
"321170815352462951280485724421628121517",
"177747034564234600509801537191660882529",
"10072442083015084982248525917364072068",
"319984749987424715195225548359889701045",
"91137359474655005720175570702654160721",
"337405249729153608100396960510260385826",
"274356324066111766103715693412752294663",
"76038044879744092160524667062397329977",
"301221776216023502097700318281417739482",
"707134332015988489512403257477274019",
"213858531594277426051220284782676505990",
"68785804981252562555795936708664418663",
"100313922471481109618800534393106213330",
"273628933568259645821266948555746258232",
"275515799993060371316561887529561824744",
"220188977339006094095722978668396215698",
"164539448480274130093611231478084636911",
"248257372029887119920914818677734514920",
"291843430103872094375034959362426157834",
"99389478946420808655873989718090339536",
"117966181147198184739628270649132200220",
"165460937767689488540714688624790594434",
"277072007908050653724890089900401043606",
"89222769570854796545096564547590825079",
"11669739399850369513117360819293130234",
"158007201958189320500919148870157930931",
"206851619774420320223544312416855984949",
"231968505191390434944795080608767724882",
"205605161026734988565951204743954319653",
"47816446765517506169508566663018328243",
"29537879250263352521057583814387605679",
"10701072071214418277398713816225511856",
"111136119119376237836957585978008820440",
"99254272134894162374660730675676752869",
"135745028777782538077990320296529665633",
"230710433627736383998007148326629718766",
"169126331861682281417138264647913803545",
"202129976081931673461745570177054140955",
"286932477217672969910641655114407382254",
"166443933074671656988141903330396332959",
"185440004704298487665522178617037001505",
"20470835903456051044390293095397457825",
"78827245408752820811383116763153183089",
"244542742669381229788498016919751099017",
"180159745437315025388641376920237892997",
"80830839308188516765404720351557223084",
"131044745426084961477318359921801315136",
"38320909786676000528564556867901241315",
"151829388775109986157949815045587223264",
"223497949666942958691417736579625812645",
"230862113204287789616295365022331443244",
"74956891127050512536650360197307336112",
"16986114209090209870071339271291402265",
"116511885267062789550843680471262159004",
"339667311767489231070072934135800876678",
"98335823829575919731847808903885361472",
"338673404831547911080376933242399145182",
"195024453560645593739232862646280026770",
"70083518488992824126186557307005983468",
"43134210344221258884624985626974655981",
"45503883055192748954096141745163766438",
"201847853268675269974259756225734873537",
"174753387717402673068636922138289205991",
"16480895398239085533705443175229498370",
"259500957314628334818595835286706068698",
"172380618333021758554636791939017047145",
"160800463702748967653377947525522959312",
"127803378753031145934314206634555789222",
"187942569865540693439890190345374948604",
"272386111763179808563901084108653975402",
"86307278744547609668078395512121200319",
"3407998250793879287266369912754289845",
"253048352394134948589677398489801098236",
"78176018790931919205360595386705417648",
"337036424567037793911741761012295609223",
"12988597882942729945170515897691258178",
"114318354635462852043500025649203661139",
"86307278744547609668078395512121200319",
"262419938259755819641468125432352224437",
"299029141703029787008899949135098012088",
"41819606756725131074075987906590426661",
"8856529054438508862038181935043081257",
"303679734657530682891732303104539719038",
"333808323874273701120420266195041963628",
"107129652971859167243129072286694516247",
"61567146340391190501553327708314269776",
"303679734657530682891732303104539719038",
"168534449123004960746244822360685637428",
"334266848137163099164685324448696241407",
"170833376724505448375909725109420297070",
"303679734657530682891732303104539719038",
"168534449123004960746244822360685637428",
"334266848137163099164685324448696241407",
"291395626422367727666300183273426255435"
],
"threshold": 0.9
},
"source": "https://github.com/imagemagick/imagemagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d",
"signature_version": "v1",
"target": {
"file": "magick/quantum-export.c"
}
}
]