Skip to content
OpenAdvisories
Critical USN-3199-2 1 CVE

Python Crypto regression

Published Feb 17, 2017 · Updated Feb 10, 2026

Summary

USN-3199-1 fixed a vulnerability in the Python Cryptography Toolkit.
Unfortunately, various programs depended on the original behavior of the Python
Cryptography Toolkit which was altered when fixing the vulnerability. This
update retains the fix for the vulnerability but issues a warning rather than
throwing an exception. Code which produces this warning should be updated
because future versions of the Python Cryptography Toolkit re-introduce the
exception.

We apologize for the inconvenience.

Original advisory details:

It was discovered that the ALGnew function in block_template.c in the Python
Cryptography Toolkit contained a heap-based buffer overflow vulnerability.
A remote attacker could use this flaw to execute arbitrary code by using
a crafted initialization vector parameter.

Fixed packages 2

ReleasePackageFixed in
Ubuntu · 14.04 LTS 14.04:LTS python-crypto 2.6.1-4ubuntu0.2
Ubuntu · 16.04 LTS 16.04:LTS python-crypto 2.6.1-6ubuntu0.16.04.2

Vulnerabilities 1

  • Critical 9.8

    Buffer Overflow in pycrypto

    Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py.

References

  • report
    https://ubuntu.com/security/CVE-2013-7459