![install python 3 mac 10.8.5 install python 3 mac 10.8.5](https://derflounder.files.wordpress.com/2013/07/screen-shot-2013-07-14-at-10-39-09-pm-tm.jpg)
The CVE is fixed now (thanks for pointing it out!). Pycrypto didn’t release any fix to that vulnerability and no commit was made to the project since Jun 20, 2014. It was assigned the CVE-2013-7459 number. It allows remote attackers to execute arbitrary code in the python application. Pycrypto is vulnerable to a heap-based buffer overflow in the ALGnew function in block_templace.c. WARNING: Don't use crypto or pycrypto anymore!Īs you can read on this page, the usage of pycrypto is not safe anymore: Now it works as expected when I do something like: from Crypto.Cipher import AES
#Install python 3 mac 10.8.5 install#
The fix seems to be removing both crypto and pycrypto with pip: sudo pip uninstall cryptoĪnd reinstalling pycrypto: sudo pip install pycrypto I ran into this on Mac as well, and it seems to be related to having an unfortunately similarly named "crypto" module (not sure what that is for) installed alongside of pycrypto via pip. Use pycryptodome instead, it is a drop-in replacement
![install python 3 mac 10.8.5 install python 3 mac 10.8.5](https://www.mytecbits.com/wp-content/uploads/Upgrade-Python-On-MacOS-202.png)
I then removed pycrypto and installed it again with easy_install, like this: pip uninstall pycryptoĪlso as Luke commented: If you have trouble running these commands, be sure to run them as admin (sudo)ĮDIT: As winklerr correctly notes above, pycrypto is no longer safe. I had the same problem on my Mac when installing with pip. Since this worked correctly in the past, I assume this is a new requirement. The solution was quite simple - add: libraries: I had the same problem (though on Linux).