{"id":"CVE-2022-36040","summary":"Rizin Out-of-bounds Write vulnerability in pyc/marshal.c","details":"Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.4.0 and prior are vulnerable to an out-of-bounds write when getting data from PYC(python) files. A user opening a malicious PYC file could be affected by this vulnerability, allowing an attacker to execute code on the user's machine. Commit number 68948017423a12786704e54227b8b2f918c2fd27 contains a patch.","aliases":["GHSA-h897-rhm9-rpmw"],"modified":"2026-04-16T12:11:19.559571Z","published":"2022-09-06T00:00:00Z","database_specific":{"cwe_ids":["CWE-787"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36040.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36040.json"},{"type":"ADVISORY","url":"https://github.com/rizinorg/rizin/security/advisories/GHSA-h897-rhm9-rpmw"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQZLMHEI5D7EJASA5UW6XN4ODHLRHK6N/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36040"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-06"},{"type":"REPORT","url":"https://github.com/rizinorg/rizin/issues/2963"},{"type":"FIX","url":"https://github.com/rizinorg/rizin/commit/68948017423a12786704e54227b8b2f918c2fd27"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rizinorg/rizin","events":[{"introduced":"0"},{"fixed":"68948017423a12786704e54227b8b2f918c2fd27"}]}],"database_specific":{"vanir_signatures":[{"signature_version":"v1","signature_type":"Function","id":"CVE-2022-36040-6537e996","target":{"file":"librz/bin/format/pyc/marshal.c","function":"get_complex_object"},"digest":{"function_hash":"72458637873801972653470581717360473393","length":1154},"source":"https://github.com/rizinorg/rizin/commit/68948017423a12786704e54227b8b2f918c2fd27","deprecated":false},{"signature_version":"v1","signature_type":"Line","id":"CVE-2022-36040-7b35c5b5","target":{"file":"librz/bin/format/pyc/marshal.c"},"digest":{"line_hashes":["82261749963884352064761051487121887822","228268872496510562546183714163607576222","199466917720915328768596104141075825853","293482853746269340502531165291506837508","140999574085095719459912485404339349722","116412659685932707513396615129518789484","173925645218753159051339930150842507044","312678228229500263673679713722502109697","68626622871899505520720809438743105521","151776157733578431625676153769401840921","136916274336501706032085600434429911593","311877571123002377407786169711506545989","261076102413676695034074526986463750302","292817559914706842946213124231108447799","239081205955742708329577561677706450353","203515982502618665553204445678132622747","85884461731748264322993589370992014696","243075124111099643022453739273065865248","318682926191024384660535147717027302238","101345095486902603108522056330809211919","320471860538681276076444384901723410039","204701611301982111874660282145742224988","222056925131123246676957947244190969287","160754004593734786832102050938434667205"],"threshold":0.9},"source":"https://github.com/rizinorg/rizin/commit/68948017423a12786704e54227b8b2f918c2fd27","deprecated":false}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-36040.json","vanir_signatures_modified":"2026-04-16T12:11:19Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}