p PatchFirst

CVE-2025-5917

CVE-2025-5917 · Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c

This page contains facts from public vulnerability sources. Check the original advisory before updating.

A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation. This bug affects libarchive versions prior to 3.8.0.

CVSS 2.8 · Low · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • red hat enterprise linux 10

    No fix published

  • red hat enterprise linux 6

    No fix published

  • red hat enterprise linux 7

    No fix published

  • red hat enterprise linux 8

    No fix published

  • red hat enterprise linux 9

    No fix published

  • red hat openshift container platform 4

    No fix published

  • libarchive Debian:12

    Versions
    • 3.6.2-1
    • 3.6.2-1+deb12u1
    • 3.6.2-1+deb12u2
    Affected ranges
    • ECOSYSTEM: < 3.6.2-1+deb12u3

    Update to 3.6.2-1+deb12u3

  • libarchive Debian:13

    Affected ranges
    • ECOSYSTEM: < 3.7.4-4

    Update to 3.7.4-4

  • libarchive Debian:14

    Affected ranges
    • ECOSYSTEM: < 3.7.4-4

    Update to 3.7.4-4

  • libarchive Ubuntu:Pro:14.04:LTS

    Versions
    • 3.1.2-5ubuntu1
    • 3.1.2-7ubuntu1
    • 3.1.2-7ubuntu2
    • 3.1.2-7ubuntu2.1
    • 3.1.2-7ubuntu2.2
    • 3.1.2-7ubuntu2.3
    • 3.1.2-7ubuntu2.4
    • 3.1.2-7ubuntu2.6
    • 3.1.2-7ubuntu2.7
    • 3.1.2-7ubuntu2.8
    • 3.1.2-7ubuntu2.8+esm1
    • 3.1.2-7ubuntu2.8+esm3
    Affected ranges
    • ECOSYSTEM: < 3.1.2-7ubuntu2.8+esm4

    Update to 3.1.2-7ubuntu2.8+esm4

  • libarchive Ubuntu:Pro:16.04:LTS

    Versions
    • 3.1.2-11build1
    • 3.1.2-11ubuntu0.16.04.1
    • 3.1.2-11ubuntu0.16.04.2
    • 3.1.2-11ubuntu0.16.04.3
    • 3.1.2-11ubuntu0.16.04.4
    • 3.1.2-11ubuntu0.16.04.5
    • 3.1.2-11ubuntu0.16.04.6
    • 3.1.2-11ubuntu0.16.04.7
    • 3.1.2-11ubuntu0.16.04.8
    • 3.1.2-11ubuntu0.16.04.8+esm1
    Affected ranges
    • ECOSYSTEM: < 3.1.2-11ubuntu0.16.04.8+esm2

    Update to 3.1.2-11ubuntu0.16.04.8+esm2

  • libarchive Ubuntu:Pro:18.04:LTS

    Versions
    • 3.2.2-3.1
    • 3.2.2-3.1ubuntu0.1
    • 3.2.2-3.1ubuntu0.2
    • 3.2.2-3.1ubuntu0.3
    • 3.2.2-3.1ubuntu0.4
    • 3.2.2-3.1ubuntu0.5
    • 3.2.2-3.1ubuntu0.6
    • 3.2.2-3.1ubuntu0.7
    • 3.2.2-3.1ubuntu0.7+esm1
    Affected ranges
    • ECOSYSTEM: < 3.2.2-3.1ubuntu0.7+esm2

    Update to 3.2.2-3.1ubuntu0.7+esm2

  • libarchive Ubuntu:Pro:20.04:LTS

    Versions
    • 3.4.0-1
    • 3.4.0-1build1
    • 3.4.0-1ubuntu2
    • 3.4.0-2ubuntu1
    • 3.4.0-2ubuntu1.1
    • 3.4.0-2ubuntu1.2
    • 3.4.0-2ubuntu1.3
    • 3.4.0-2ubuntu1.4
    • 3.4.0-2ubuntu1.5
    Affected ranges
    • ECOSYSTEM: < 3.4.0-2ubuntu1.5+esm1

    Update to 3.4.0-2ubuntu1.5+esm1

  • libarchive Ubuntu:22.04:LTS

    Versions
    • 3.4.3-2
    • 3.4.3-2build1
    • 3.5.2-1
    • 3.5.2-1ubuntu1
    • 3.6.0-1ubuntu1
    • 3.6.0-1ubuntu1.1
    • 3.6.0-1ubuntu1.2
    • 3.6.0-1ubuntu1.3
    • 3.6.0-1ubuntu1.4
    Affected ranges
    • ECOSYSTEM: < 3.6.0-1ubuntu1.5

    Update to 3.6.0-1ubuntu1.5

  • libarchive Ubuntu:24.04:LTS

    Versions
    • 3.6.2-1ubuntu1
    • 3.7.2-1ubuntu1
    • 3.7.2-1ubuntu2
    • 3.7.2-1.1ubuntu2
    • 3.7.2-2
    • 3.7.2-2ubuntu0.1
    • 3.7.2-2ubuntu0.2
    • 3.7.2-2ubuntu0.3
    • 3.7.2-2ubuntu0.4
    Affected ranges
    • ECOSYSTEM: < 3.7.2-2ubuntu0.5

    Update to 3.7.2-2ubuntu0.5

  • libarchive Ubuntu:25.10

    Versions
    • 3.7.7-0ubuntu2
    • 3.7.7-0ubuntu2.1
    • 3.7.7-0ubuntu2.2
    Affected ranges
    • ECOSYSTEM: < 3.7.7-0ubuntu3

    Update to 3.7.7-0ubuntu3

Original sources

Check your server →