Affected versions
PyPIcapstone
- Affected versions
- <5.0.8 || =2.0 || =2.1 || =3.0 || =3.0.1 || =3.0.2 || =3.0.3 || =3.0.4 || =3.0.5 || =3.0.5.post1 || =3.0.5rc2 || =4.0.0 || =4.0.1 || =4.0.2 || =5.0.0 || =5.0.0.post1 || =5.0.0rc2 || =5.0.0rc4 || =5.0.1 || =5.0.2 || =5.0.3 || =5.0.4 || =5.0.5 || =5.0.6 || =5.0.7
- Fixed version
- 5.0.8
Exploitation
Description
Capstone is a disassembly framework. Versions prior to 6.0.0-Alpha8 and 5.0.8 have a NULL pointer dereference in modRMRequired() and decode() when disassembling 3DNow! opcodes (0F 0F) in builds compiled with -DCAPSTONE_X86_REDUCE, allowing a remote attacker to crash any application using the reduced X86 Capstone library by supplying a crafted input containing the 4-byte sequence 0F 0F <modrm> <imm8>. Versions 6.0.0-Alpha8 and 5.0.8 patch the issue.
Links
- https://github.com/capstone-engine/capstone/commit/a0201371719b5aaa91d318ab2898843718f92d1f
- https://github.com/capstone-engine/capstone/commit/fab595205fee206f5c21be6ed8ad2eaf9225f1c7
- https://github.com/capstone-engine/capstone/pull/2924
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-289w-cm54-fgrm

