{"schemaVersion":3,"id":"CVE-2021-3345","aliases":["UBUNTU-CVE-2021-3345"],"status":"published","duplicateOf":null,"title":null,"description":"_gcry_md_block_write in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a large count value. It is recommended to upgrade to 1.9.1 or later.","dates":{"published":"2021-01-29T14:20:31.000Z","modified":"2024-08-03T16:53:17.504Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01064,"percentile":0.64075,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.01064},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01064,"percentile":0.64075}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01064,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01064,"percentile":0.64075}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"ubuntu","product":"libgcrypt11","name":"libgcrypt11","label":"libgcrypt11","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libgcrypt11","purlType":"deb","versions":[{"text":"< 1.5.3-2ubuntu4.6+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.3-2ubuntu4.6+esm1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libgcrypt20","name":"libgcrypt20","label":"libgcrypt20","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libgcrypt20","purlType":"deb","versions":[{"text":"< 1.6.5-2ubuntu0.6","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.1-4ubuntu1.2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.8.5-5ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.6.5-2ubuntu0.6 | < 1.8.1-4ubuntu1.2 | < 1.8.5-5ubuntu1","eol":null,"hubHref":null},{"vendor":"gnupg","product":"libgcrypt","name":"libgcrypt","label":"libgcrypt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.9.0","eol":null,"hubHref":"/vendor/gnupg/libgcrypt"},{"vendor":"oracle","product":"communications_billing_and_revenue_management","name":"communications billing and revenue management","label":"communications_billing_and_revenue_management","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"12.0.0.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"12.0.0.3.0","eol":null,"hubHref":"/vendor/oracle/communications_billing_and_revenue_management"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=512c0c75276949f13b6373b5c04f7065af750b08","label":"git.gnupg.org/cgi-bin/…","hostname":"git.gnupg.org","tags":["X Refsource MISC"]},{"url":"https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html","label":"lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html","hostname":"lists.gnupg.org","tags":["X Refsource MISC","REPORT","Mailing List","Vendor Advisory"]},{"url":"https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html","label":"lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html","hostname":"lists.gnupg.org","tags":["X Refsource MISC","REPORT","Mailing List","Patch","Vendor Advisory"]},{"url":"https://gnupg.org","label":"gnupg.org","hostname":"gnupg.org","tags":["X Refsource MISC","REPORT","Vendor Advisory"]},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=767814","label":"bugs.gentoo.org/show_bug.cgi?id=767814","hostname":"bugs.gentoo.org","tags":["X Refsource MISC","Issue Tracking","Vendor Advisory"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","label":"www.oracle.com//security-alerts/cpujul2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3345","label":"ubuntu.com/security/CVE-2021-3345","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=512c0c75276949f13b6373b5c04f7065af750b08","label":"git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=512c0c75276949f13b6373b5c04f7065af750b08","hostname":"git.gnupg.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3345","label":"www.cve.org/CVERecord?id=CVE-2021-3345","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10941-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10941-1"]},"timeline":[{"kind":"published","date":"2021-01-29T14:20:31.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T16:53:17.504Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T12:11:18.467Z","stale":false,"partial":false}}