{"schemaVersion":3,"id":"CVE-2018-6829","aliases":["DEBIAN-CVE-2018-6829"],"status":"published","duplicateOf":null,"title":null,"description":"cipher/elgamal.c in Libgcrypt through 1.8.2, when used to encrypt messages directly, improperly encodes plaintexts, 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 Libgcrypt's ElGamal implementation.","dates":{"published":"2018-02-07T23:00:00.000Z","modified":"2024-08-05T06:17:15.803Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.01777,"percentile":0.77893,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.015000000000000083,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01762},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01681,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01777,"percentile":0.77893}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01681,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01762,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01777,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01777,"percentile":0.77893}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_WEIKENGCHEN_ATTACK-ON-LIBGCRYPT-ELGAMAL","name":"Attack On Libgcrypt Elgamal","source":"github","url":"https://github.com/weikengchen/attack-on-libgcrypt-elgamal/wiki","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"}],"affected":[{"vendor":"debian","product":"gnupg1","name":"gnupg1","label":"gnupg1","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/gnupg1","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"libgcrypt20","name":"libgcrypt20","label":"libgcrypt20","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libgcrypt20","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnupg","product":"libgcrypt","name":"libgcrypt","label":"libgcrypt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.8.2","eol":null,"hubHref":"/vendor/gnupg/libgcrypt"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/weikengchen/attack-on-libgcrypt-elgamal/wiki","label":"github.com/weikengchen/attack-on-libgcrypt-elgamal/wiki","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://lists.gnupg.org/pipermail/gcrypt-devel/2018-February/004394.html","label":"lists.gnupg.org/pipermail/gcrypt-devel/2018-February/004394.html","hostname":"lists.gnupg.org","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/weikengchen/attack-on-libgcrypt-elgamal","label":"github.com/weikengchen/attack-on-libgcrypt-elgamal","hostname":"github.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","label":"www.oracle.com/security-alerts/cpujan2020.html","hostname":"www.oracle.com","tags":["X Refsource MISC"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-6829","label":"security-tracker.debian.org/tracker/CVE-2018-6829","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-02-07T23:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T06:17:15.803Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:22:30.868Z","stale":false,"partial":false}}