The utf-16 decoder in Python 3.1 through 3.3 does not update the alignedend variable after calling the unicodedecodecallerrorhandler function, which allows remote attackers to obtain sensitive information (process memory) or cause a denial of service (memory corruption and crash) via unspecified vectors.
{
"cwe_ids": []
}"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2012-6.json"
[
{
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/python/cpython/commit/715a63b78349952ccc0fb3dd3139e2d822006d35",
"digest": {
"threshold": 0.9,
"line_hashes": [
"77494284213508312052507397711133163586",
"30806758719947998487129044887749264242",
"203366887679185723305577288738612810987",
"105876085667305864668651171667032818981"
]
},
"id": "PSF-2012-6-04a948c5",
"deprecated": false,
"target": {
"file": "Objects/unicodeobject.c"
}
},
{
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/python/cpython/commit/b4bbee25b1e3f4bccac222f806b3138fb72439d6",
"digest": {
"threshold": 0.9,
"line_hashes": [
"165844190008975069712553340698872190936",
"245897025504651289261113700743353006929",
"164854537525224905288953051679758517629",
"291984642916331106058846634598886242432",
"50169221587702496264495002002897038912",
"164147420397122152913582262389002589808",
"57160220024913791209374029041787450775",
"332374660219934258666062435584255162813",
"80910501957713297644877656464099344798",
"338542055379720399115105443035006550362",
"265121188902807983996067249986765932642",
"158053233666429378285982798840787214583",
"253163290355035482207048534699352261353",
"68492468683141535834108614760712042905",
"17821435917437956688473928186382427001",
"170473605874361382511573245345388531530",
"202890645637614026262971475624558266958",
"267907126879349388823196516931657388484",
"68900991534646639698144392606070395330",
"256390306608142115759009881073416753470",
"233013770943082266588971712296670031157",
"54509061804357986290942462556418691342",
"262130273377363789577347465282622711913",
"154062711258981944996321351676793271328",
"42621504727512583172973859583369447264",
"207774792670407595782000259352125940948",
"129279224619668629836869633592712339796",
"32403682606205744779488227920330599800",
"133584572493934171707917617383263857417",
"166898234993255645495097679863489600388",
"237979303760912724848309739929391382976",
"32616809297223401351156960678240271461",
"304868938254431693866679396895629422192",
"36266387123631911751650170013857333973",
"328586746968421802521081593114933673798",
"232641998035144466397518376950199788145",
"73474880666312939095000384367925001101",
"225991497188082315817720916378152757866",
"95805668484640174581692812964489052776",
"217409550157864117617425384686759750685",
"303949675149642035642638360288021083158",
"294425763778668853335509820007276050865",
"54509061804357986290942462556418691342",
"252645316857192675615383829419933630797",
"261660632103313594228445199870822234572",
"160991405832813485313269032528463313519"
]
},
"id": "PSF-2012-6-2a9c562a",
"deprecated": false,
"target": {
"file": "Objects/unicodeobject.c"
}
},
{
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/b4bbee25b1e3f4bccac222f806b3138fb72439d6",
"digest": {
"function_hash": "230354985645856854839500274717628464585",
"length": 4528.0
},
"id": "PSF-2012-6-a3528b57",
"deprecated": false,
"target": {
"file": "Objects/unicodeobject.c",
"function": "PyUnicode_DecodeUTF16Stateful"
}
},
{
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/715a63b78349952ccc0fb3dd3139e2d822006d35",
"digest": {
"function_hash": "36597964745776856491724274803083671869",
"length": 2552.0
},
"id": "PSF-2012-6-e2e96cb7",
"deprecated": false,
"target": {
"file": "Objects/unicodeobject.c",
"function": "PyUnicode_DecodeUTF16Stateful"
}
}
]