<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201206-23">
  <title>PyCrypto: Weak key generation</title>
  <synopsis>PyCrypto generates weak ElGamal keys.</synopsis>
  <product type="ebuild">pycrypto</product>
  <announced>2012-06-24</announced>
  <revised count="1">2012-06-24</revised>
  <bug>417625</bug>
  <access>remote</access>
  <affected>
    <package name="dev-python/pycrypto" auto="yes" arch="*">
      <unaffected range="ge">2.6</unaffected>
      <vulnerable range="lt">2.6</vulnerable>
    </package>
  </affected>
  <background>
    <p>PyCrypto is the Python Cryptography Toolkit.</p>
  </background>
  <description>
    <p>An error in the generate() function in ElGamal.py causes PyCrypto to
      generate weak ElGamal keys.
    </p>
  </description>
  <impact type="normal">
    <p>A remote attacker might be able to derive private keys.</p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All PyCrypto users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=dev-python/pycrypto-2.6"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-2417">CVE-2012-2417</uri>
  </references>
  <metadata timestamp="2012-06-11T22:45:07Z" tag="requester">ackle</metadata>
  <metadata timestamp="2012-06-24T12:38:41Z" tag="submitter">ackle</metadata>
</glsa>
