Integer Overflow or Wraparound Affecting libarchive package, versions <3.6.0-1ubuntu1.9


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.08% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-LIBARCHIVE-18263994
  • published9 Oct 2026
  • disclosed21 Jul 2026

Introduced: 21 Jul 2026

CVE-2026-16517  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 libarchive to version 3.6.0-1ubuntu1.9 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libarchive package and not the libarchive package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

A signed integer overflow vulnerability was found in libarchive's ZIP writer. In the archive_write_zip_header function in archive_write_set_format_zip.c, when ZIP encryption is enabled and the entry file size is close to INT64_MAX, the addition of the encryption overhead to the entry size overflows int64_t, resulting in undefined behavior. This could lead to incorrect Zip64 extension decisions or potential memory corruption.

CVSS Base Scores

version 3.1