GHSA-v367-p58w-98h5

Suggest an improvement
Source
https://github.com/advisories/GHSA-v367-p58w-98h5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-v367-p58w-98h5/GHSA-v367-p58w-98h5.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-v367-p58w-98h5
Aliases
Published
2022-05-17T01:46:08Z
Modified
2024-12-01T05:37:09.574453Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
PyCrypto makes Use of Insufficiently Random Values
Details

PyCrypto before 2.6 does not produce appropriate prime numbers when using an ElGamal scheme to generate a key, which reduces the signature space or public key space and makes it easier for attackers to conduct brute force attacks to obtain the private key.

Database specific
{
    "nvd_published_at": "2012-06-17T03:41:00Z",
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-30T14:35:18Z"
}
References

Affected packages

PyPI / pycrypto

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6

Affected versions

1.*

1.9a2
1.9a5
1.9a6

2.*

2.0
2.0.1
2.1.0
2.2
2.3
2.4
2.4.1
2.5