ubuntu-cve-2021-3345
Vulnerability from osv_ubuntu
Published
2021-01-29 15:15
Modified
2025-07-16 04:56
Summary
Details

_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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libgcrypt11",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-dbg",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-dbgsym",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-dev",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-dev-dbgsym",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-doc",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-udeb",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          },
          {
            "binary_name": "libgcrypt11-udeb-dbgsym",
            "binary_version": "1.5.3-2ubuntu4.6+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "libgcrypt11",
        "purl": "pkg:deb/ubuntu/libgcrypt11@1.5.3-2ubuntu4.6+esm1?arch=source\u0026distro=trusty/esm"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.5.3-2ubuntu4.6+esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.5.0-3ubuntu3",
        "1.5.3-2ubuntu1",
        "1.5.3-2ubuntu4",
        "1.5.3-2ubuntu4.1",
        "1.5.3-2ubuntu4.2",
        "1.5.3-2ubuntu4.3",
        "1.5.3-2ubuntu4.4",
        "1.5.3-2ubuntu4.5",
        "1.5.3-2ubuntu4.6"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libgcrypt11-dev",
            "binary_version": "1.5.4-3+really1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-dbgsym",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-dev",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-dev-dbgsym",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-doc",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-udeb",
            "binary_version": "1.6.5-2ubuntu0.6"
          },
          {
            "binary_name": "libgcrypt20-udeb-dbgsym",
            "binary_version": "1.6.5-2ubuntu0.6"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "libgcrypt20",
        "purl": "pkg:deb/ubuntu/libgcrypt20@1.6.5-2ubuntu0.6?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.5-2ubuntu0.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.6.3-2ubuntu1",
        "1.6.4-3",
        "1.6.4-4",
        "1.6.4-5",
        "1.6.5-2",
        "1.6.5-2ubuntu0.2",
        "1.6.5-2ubuntu0.3",
        "1.6.5-2ubuntu0.4",
        "1.6.5-2ubuntu0.5"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libgcrypt-mingw-w64-dev",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt11-dev",
            "binary_version": "1.5.4-3+really1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20-dbgsym",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20-dev",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20-dev-dbgsym",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20-doc",
            "binary_version": "1.8.1-4ubuntu1.2"
          },
          {
            "binary_name": "libgcrypt20-udeb",
            "binary_version": "1.8.1-4ubuntu1.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "libgcrypt20",
        "purl": "pkg:deb/ubuntu/libgcrypt20@1.8.1-4ubuntu1.2?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.1-4ubuntu1.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.7.8-2ubuntu1",
        "1.7.9-1",
        "1.8.1-4",
        "1.8.1-4ubuntu1",
        "1.8.1-4ubuntu1.1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libgcrypt-mingw-w64-dev",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20-dbgsym",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20-dev",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20-dev-dbgsym",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20-doc",
            "binary_version": "1.8.5-5ubuntu1"
          },
          {
            "binary_name": "libgcrypt20-udeb",
            "binary_version": "1.8.5-5ubuntu1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "libgcrypt20",
        "purl": "pkg:deb/ubuntu/libgcrypt20@1.8.5-5ubuntu1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.8.5-5ubuntu1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.8.4-5ubuntu2",
        "1.8.5-3ubuntu1"
      ]
    }
  ],
  "aliases": [],
  "details": "_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.",
  "id": "UBUNTU-CVE-2021-3345",
  "modified": "2025-07-16T04:56:37Z",
  "published": "2021-01-29T15:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-3345"
    },
    {
      "type": "REPORT",
      "url": "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=512c0c75276949f13b6373b5c04f7065af750b08"
    },
    {
      "type": "REPORT",
      "url": "https://gnupg.org"
    },
    {
      "type": "REPORT",
      "url": "https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000455.html"
    },
    {
      "type": "REPORT",
      "url": "https://lists.gnupg.org/pipermail/gnupg-announce/2021q1/000456.html"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2021-3345"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "high",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2021-3345"
  ],
  "withdrawn": "2025-07-18T16:46:25Z"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…