Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-7166

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

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

Source evidence

CVE-2016-7166

core-osv · Original source

Published 21 Sept 2016, 14:25 UTC

libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.

osv:CVE-2016-7166
Complete source record
{
  "id": "de928d19bc576f684e140502fb2fb4b6d94fe26fa28a22722866037d0bfe93c2",
  "url": "https://osv.dev/vulnerability/CVE-2016-7166",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-7166",
    "summary": "libarchive before 3.2.0 does not limit the number of recursive decompressions, which allows remote attackers to cause a denial of service (memory consumption and application crash) via a crafted gzip file.",
    "evidence": "osv:CVE-2016-7166",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-7166",
      "aliases": [
        "CVE-2016-7166"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libarchive/libarchive",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "74583ab6fdbf1a2837d8102c0075ff4eeeede320"
                },
                {
                  "fixed": "6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.1.901a"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.0.1b",
            "v3.0.0a"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-7166.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-7166-331730fd",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "322249619529619440321848821059704942456",
                    "204323184115947032942788606140734167829",
                    "53128830481938165057533978090971461410",
                    "210842141848661018861781229891885568107",
                    "92955886637755593085125416091092887801",
                    "39239856261147431992750255720530106608",
                    "219001906336049789283271144702296850611",
                    "300793396999789703062089561275547917723",
                    "50602967525767722369012125206287191903",
                    "101939981856117434506075189448118884993",
                    "41696469281611705517438622574604691789",
                    "93662261141235397336793541586627527916",
                    "14922624608788651983020252531567255043"
                  ]
                },
                "source": "https://github.com/libarchive/libarchive/commit/6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0",
                "target": {
                  "file": "libarchive/archive_read.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-7166-5a996891",
                "digest": {
                  "length": 1074,
                  "function_hash": "275373803838793477454246285970392479828"
                },
                "source": "https://github.com/libarchive/libarchive/commit/6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0",
                "target": {
                  "file": "libarchive/archive_read.c",
                  "function": "choose_filters"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:23:25Z"
          }
        }
      ],
      "modified": "2026-10-20T13:23:25.439665811Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/201701-03",
        "https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207362",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1347086",
        "https://github.com/libarchive/libarchive/commit/6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0",
        "https://github.com/libarchive/libarchive/issues/660"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:oracle:linux:6:*:*:*:*:*:*:*",
              "cpe:2.3:o:oracle:linux:7:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6"
                  },
                  {
                    "last_affected": "6"
                  },
                  {
                    "introduced": "7"
                  },
                  {
                    "last_affected": "7"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_hpc_node:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_hpc_node",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus:7.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_hpc_node_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.2"
                  },
                  {
                    "last_affected": "7.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.2"
                  },
                  {
                    "last_affected": "7.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.2"
                  },
                  {
                    "last_affected": "7.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-7166",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387604,
  "published_at": "2016-09-21T14:25:29.833+00:00"
}