When calling base64.b64decode() or related functions the decoding process would stop after encountering the first padded quad regardless of whether there was more information to be processed. This can lead to data being accepted which may be processed differently by other implementations. Use "validate=True" to enable stricter processing of base64 data.
{
"cwe_ids": []
}"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2026-16.json"
[
{
"source": "https://github.com/python/cpython/commit/1f9958f909c1b41a4ffc0b613ef8ec8fa5e7c474",
"digest": {
"function_hash": "103369807178508843048769308770419387734",
"length": 2230.0
},
"signature_version": "v1",
"target": {
"function": "binascii_a2b_base64_impl",
"file": "Modules/binascii.c"
},
"deprecated": false,
"signature_type": "Function",
"id": "PSF-2026-16-0b934374"
},
{
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/4561f6418a691b3e89aef0901f53fe0dfb7f7c0e",
"digest": {
"line_hashes": [
"308251740243441214360241344315486296835",
"298862593070636676838789130776435922669",
"31704696705913007112872600436317835618",
"3280561959286627567091312740286433895",
"272791511690695712636408433850158011755",
"154091195890888924887993257476057807202",
"199321559360362629679343461495658906679",
"64652915847875798038201753692051499167",
"209195336072683093797728904497353191729",
"274540444991886262027678749169562213340",
"207220683908788801272888562488874790286",
"125026167999666153136739113362083304671",
"166154517069735982134528465311338372891",
"208624445947860561478471450665232792223",
"96583922001486603601211494593019858049",
"44944451828091764896700976518936101798",
"319790419203790842482825477990915332180",
"140171390476066666992926741728328718818",
"192611564822380438889390570019719237281",
"329897414788943950679656511673684579497",
"184767017461582757056879474976152227212",
"204071045944111214315220627755095307487",
"123265500389455362152543683130796058161",
"2441355853725062326381121354694109828",
"181667707373597108113537153740408971276",
"51115585563120211361192828290020388836",
"61605733972765768067584554214078048423",
"237753359131552120379902720857850333877",
"186697014518989849383172688589949722656",
"105615033772616992587305665160491661262",
"269508363084351753312328813433874065087",
"78831260798923098311229929447562754306",
"115134339427902111116093382244703660037",
"244345394403669769192405449455371840813",
"212984458459346155171920207561911395330",
"185250422783555309345219106475937286480",
"13024832950729763097226277911512554200",
"8969369628337930508571551292381739191"
],
"threshold": 0.9
},
"target": {
"file": "Modules/binascii.c"
},
"deprecated": false,
"signature_type": "Line",
"id": "PSF-2026-16-6254466f"
},
{
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/e31c55121620189a0d1a07b689762d8ca9c1b7fa",
"digest": {
"function_hash": "103369807178508843048769308770419387734",
"length": 2230.0
},
"target": {
"function": "binascii_a2b_base64_impl",
"file": "Modules/binascii.c"
},
"deprecated": false,
"signature_type": "Function",
"id": "PSF-2026-16-7ba7bbf9"
},
{
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/1f9958f909c1b41a4ffc0b613ef8ec8fa5e7c474",
"target": {
"file": "Modules/binascii.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"123635523725358902078508386734471902891",
"108125221252364101808027638043428450474",
"79994763104442606067528366713217206588",
"298875896449099532246314973440700880483",
"131276957853797444143918529599362402067",
"308063782408077053116898908310959779378",
"70884714737382840049626132706926779011",
"90998911109483442502038699990204914345",
"73879260667300092604960706656790116149",
"89182059871790226817095073250406681213",
"205438025362869930180688388584524679101",
"58450693609344352857289834763655103227",
"36422638745407973472632689957383860805",
"329716844482569426569848752475078850854",
"3628427468054204590199912533462780072",
"330298391492688350654447270628060926332",
"287345845746113905275328289643979825588",
"339140038884606462140589668896329266724",
"249421260884884210332871300768418587548",
"136395771507493313850383157163475888676",
"254282474768175473119577095122290058814",
"85390170141216873481808295299321911956",
"86558242267614229969554464265648641409",
"162971034528562725994491065883770019054",
"123538170645199403935136602862503594815",
"91985313363154926664085196957047861427",
"275432643142619711677314852285498258753",
"93323820613333534808760318053989141204",
"5704833454328273914791281513298680160",
"235708008844211864318086671127550536123",
"155011100247004915195944431855250656184",
"216230438711922842333879789623549401373",
"216275148846198804725633570116806171440",
"181667707373597108113537153740408971276",
"27578296075726186158758776087080138309",
"257947884160127922166035083941661838461",
"106111669884500764496618620417094458988",
"239397552708082750842923074692406148431",
"139526213414538076177046670910845768705",
"328181785176647155843931441458043769967",
"175190668366948655292645453220864802425",
"261471763521814770762048116682668425488",
"315503902498807569325894220328513750970",
"9320674349515819920533496325533874462",
"233213085909602029195319028151751318939",
"161539167176229141501379715884458660259",
"130846012132325685824653142947986325993",
"211359745289538164425350708662258248497",
"240897911899472837585528361084534866894",
"59544026479256883561770473372156006850",
"125561156616582773906437729591981056472",
"230803155910909904355725046407046410859",
"189534308655021453950569910166243132969",
"151751636185985374366626029170238088943",
"165986068549435320943140340117846921865",
"117314137094436273832364231217091571093",
"113030228346391728296237231520660133235",
"107159704880679415537037350413675041898",
"211149141439252187869196935399044035590",
"180899262038309639974384311710147461771",
"53845784210039462852798582001209982938",
"75690331464615218550736256181027735348",
"276837003965930946319593094099046145964",
"110228010983398675242563637946605859739",
"169209664900858544429380426283382736338",
"49472020276298342587390078868144304431"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "PSF-2026-16-8fa1a7b2"
},
{
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/4561f6418a691b3e89aef0901f53fe0dfb7f7c0e",
"target": {
"function": "binascii_a2b_base64_impl",
"file": "Modules/binascii.c"
},
"deprecated": false,
"digest": {
"function_hash": "261183251055620458389601786158565502570",
"length": 3050.0
},
"signature_type": "Function",
"id": "PSF-2026-16-98714d4c"
},
{
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/e31c55121620189a0d1a07b689762d8ca9c1b7fa",
"digest": {
"line_hashes": [
"123635523725358902078508386734471902891",
"108125221252364101808027638043428450474",
"79994763104442606067528366713217206588",
"298875896449099532246314973440700880483",
"131276957853797444143918529599362402067",
"308063782408077053116898908310959779378",
"70884714737382840049626132706926779011",
"90998911109483442502038699990204914345",
"73879260667300092604960706656790116149",
"89182059871790226817095073250406681213",
"205438025362869930180688388584524679101",
"58450693609344352857289834763655103227",
"36422638745407973472632689957383860805",
"329716844482569426569848752475078850854",
"3628427468054204590199912533462780072",
"330298391492688350654447270628060926332",
"287345845746113905275328289643979825588",
"339140038884606462140589668896329266724",
"249421260884884210332871300768418587548",
"136395771507493313850383157163475888676",
"254282474768175473119577095122290058814",
"85390170141216873481808295299321911956",
"86558242267614229969554464265648641409",
"162971034528562725994491065883770019054",
"123538170645199403935136602862503594815",
"91985313363154926664085196957047861427",
"275432643142619711677314852285498258753",
"93323820613333534808760318053989141204",
"5704833454328273914791281513298680160",
"235708008844211864318086671127550536123",
"155011100247004915195944431855250656184",
"216230438711922842333879789623549401373",
"216275148846198804725633570116806171440",
"181667707373597108113537153740408971276",
"27578296075726186158758776087080138309",
"257947884160127922166035083941661838461",
"106111669884500764496618620417094458988",
"239397552708082750842923074692406148431",
"139526213414538076177046670910845768705",
"328181785176647155843931441458043769967",
"175190668366948655292645453220864802425",
"261471763521814770762048116682668425488",
"315503902498807569325894220328513750970",
"9320674349515819920533496325533874462",
"233213085909602029195319028151751318939",
"161539167176229141501379715884458660259",
"130846012132325685824653142947986325993",
"211359745289538164425350708662258248497",
"240897911899472837585528361084534866894",
"59544026479256883561770473372156006850",
"125561156616582773906437729591981056472",
"230803155910909904355725046407046410859",
"189534308655021453950569910166243132969",
"151751636185985374366626029170238088943",
"165986068549435320943140340117846921865",
"117314137094436273832364231217091571093",
"113030228346391728296237231520660133235",
"107159704880679415537037350413675041898",
"211149141439252187869196935399044035590",
"180899262038309639974384311710147461771",
"53845784210039462852798582001209982938",
"75690331464615218550736256181027735348",
"276837003965930946319593094099046145964",
"110228010983398675242563637946605859739",
"169209664900858544429380426283382736338",
"49472020276298342587390078868144304431"
],
"threshold": 0.9
},
"target": {
"file": "Modules/binascii.c"
},
"deprecated": false,
"signature_type": "Line",
"id": "PSF-2026-16-e6a88939"
}
]
"2026-04-12T23:01:47Z"