pycryptodome — security advisory
lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for PyCrypto's ElGamal implementation.
- Products
- pycryptodome
- Affected versions
- Not specified
- Fixed versions
- 3.4.11-1
- CVEs
- CVE-2018-6594
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:48 UTC · Revision 1
Source evidence
lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for PyCrypto's ElGamal implementation.
osv:DEBIAN-CVE-2018-6594
pycryptodome
Fixed versions: 3.4.11-1
pycryptodome
Fixed versions: 3.4.11-1
pycryptodome
Fixed versions: 3.4.11-1
Complete source record
{
"id": "a3bb13d39580917337f9627b7cb2baa32bc15f53751f4e2f3fea07b4df8b4b77",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-6594",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2018-6594",
"summary": "lib/Crypto/PublicKey/ElGamal.py in PyCrypto through 2.6.1 generates weak ElGamal key parameters, which allows attackers to obtain sensitive information by reading ciphertext data (i.e., it does not have semantic security in face of a ciphertext-only attack). The Decisional Diffie-Hellman (DDH) assumption does not hold for PyCrypto's ElGamal implementation.",
"evidence": "osv:DEBIAN-CVE-2018-6594",
"products": [
{
"name": {
"value": "pycryptodome",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.11-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "pycryptodome",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.11-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "pycryptodome",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.4.11-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2018-6594",
"aliases": [
"DEBIAN-CVE-2018-6594"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.11-1"
}
]
}
],
"package": {
"name": "pycryptodome",
"purl": "pkg:deb/debian/pycryptodome?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-6594.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.11-1"
}
]
}
],
"package": {
"name": "pycryptodome",
"purl": "pkg:deb/debian/pycryptodome?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-6594.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.11-1"
}
]
}
],
"package": {
"name": "pycryptodome",
"purl": "pkg:deb/debian/pycryptodome?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-6594.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:48.565620664Z",
"provider": "osv",
"upstream": [
"CVE-2018-6594"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2018-6594"
]
},
"related_cves": [
{
"value": "CVE-2018-6594",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 422310,
"published_at": "2018-02-03T15:29:00.653+00:00"
}