Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46848

GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-46848
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:02 UTC · Revision 1

Source evidence

CVE-2021-46848

core-osv · Original source

Published 24 Oct 2022, 14:15 UTC

GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.

osv:CVE-2021-46848
Complete source record
{
  "id": "10346a058844a8c75422ffdf835a407823df63f7feb32ae02f77a9cc67706a36",
  "url": "https://osv.dev/vulnerability/CVE-2021-46848",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46848",
    "summary": "GNU Libtasn1 before 4.19.0 has an ETYPE_OK off-by-one array size check that affects asn1_encode_simple_der.",
    "evidence": "osv:CVE-2021-46848",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-46848",
      "aliases": [
        "CVE-2021-46848"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gnutls/libtasn1",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2b7ee166f031bea63c5e7badcedc69f1cea69c89"
                },
                {
                  "fixed": "44a700d2051a666235748970c2df047ff207aeb5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:libtasn1:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.19.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "44a700d2051a666235748970c2df047ff207aeb5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.18.0",
            "v4.17.0",
            "v4.16.0",
            "libtasn1_4_16_0",
            "4.16.0",
            "libtasn1_4_15_0",
            "libtasn1_4_14",
            "libtasn1_4_13",
            "libtasn1_4_12",
            "libtasn1_4_11",
            "libtasn1_4_9",
            "libtasn1_4_8",
            "libtasn1_4.7",
            "libtasn1_4_6",
            "libtasn1_4_5",
            "libtasn1_4_4",
            "libtasn1_4_3",
            "libtasn1_4_2",
            "libtasn1_4_1",
            "libtasn1_4_0",
            "libtasn1_3_6",
            "libtasn1_3_5",
            "libtasn1_3_4",
            "libtasn1_3_3",
            "libtasn1_3_2",
            "libtasn1_3_1",
            "libtasn1_3_0",
            "libtasn1_2_13",
            "libtasn1_2_12",
            "libtasn1_2_11",
            "libtasn1_2_10",
            "libtasn1_2_9",
            "libtasn1_2_8",
            "libtasn1_2_7",
            "libtasn1_2_6",
            "libtasn1_2_5",
            "libtasn1_2_4",
            "libtasn1_2_3",
            "libtasn1_2_2",
            "libtasn1_2_1",
            "libtasn1_2_0",
            "libtasn1_1_6",
            "libtasn1_1_5",
            "libtasn1_1_4",
            "libtasn1_1_3",
            "libtasn1_1_2",
            "libtasn1_1_1",
            "libtasn1_1_0",
            "libtasn1_0_3_10",
            "libtasn1_0_3_9",
            "libtasn1_0_3_8",
            "libtasn1_0_3_7",
            "libtasn1_0_3_6",
            "libtasn1_0_3_5",
            "libtasn1_0_3_4",
            "libtasn1_0_3_3",
            "libtasn1_0_3_2",
            "libtasn1-0-3-2",
            "libtasn1_0_3_1",
            "libtasn1_0_3_0",
            "libtasn1_0_2_18",
            "libtasn1_0_2_17",
            "libtasn1_0_2_16",
            "libtasn1_0_2_15",
            "libtasn1_0_2_14",
            "libtasn1_0_2_13",
            "libtasn1_0_2_12",
            "libtasn1_0_2_11",
            "libtasn1_0_2_10",
            "libtasn1_0_2_9",
            "libtasn1_0_2_8",
            "libtasn1_0_2_7",
            "libtasn1_0_2_6",
            "libtasn1_0_2_5",
            "libtasn1_0_2_4",
            "libtasn1_0_2_3",
            "libtasn1_0_2_2",
            "libtasn1_0_2_1",
            "libtasn1_0_2_0",
            "libtasn1_0_1_2",
            "gnutls_0_5_1",
            "gnutls_0_5_0",
            "libtasn1_after_rename",
            "libasn1_0_1_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46848.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-46848-7660d0ca",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "180900001376631709891623456653421985644",
                    "86988387996833609858408414136069345084",
                    "224585302465881495030456921739265879297",
                    "137788088335804504219050604484537465829"
                  ]
                },
                "source": "https://gitlab.com/gnutls/libtasn1@44a700d2051a666235748970c2df047ff207aeb5",
                "target": {
                  "file": "lib/int.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:31:43Z"
          }
        }
      ],
      "modified": "2026-10-20T14:31:43.624647398Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV4SHDJF2XLB4CUPTBPQQ6CLGZ5LKXPZ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ECM2ELTVRYV4BZ5L5GMIRQE27RFHPAQ6/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OGO7XST4EIJGX4B2ITZCYSWM24534BSU/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V5LWOGF7QRMNFRUCZY6TDYQJVFI6MOQ2/",
        "https://lists.debian.org/debian-lts-announce/2023/01/msg00003.html",
        "https://security.netapp.com/advisory/ntap-20221118-0006/",
        "https://gitlab.com/gnutls/libtasn1/-/issues/32",
        "https://bugs.gentoo.org/866237",
        "https://gitlab.com/gnutls/libtasn1/-/commit/44a700d2051a666235748970c2df047ff207aeb5"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  },
                  {
                    "introduced": "36"
                  },
                  {
                    "last_affected": "36"
                  },
                  {
                    "introduced": "37"
                  },
                  {
                    "last_affected": "37"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-46848",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389703,
  "published_at": "2022-10-24T14:15:49.973+00:00"
}