StackPatch is liveSee product

Back to CVE digest
CVE-2026-5704 · cross-distro fix matrix

CVE-2026-5704: It was discovered that tar incorrectly handled certain crafted archive files.

Affects 7 Linux releases across 14 (distro × package) combinations. First disclosed: 2026-06-25.

Fix per ecosystem

Each block below is a distro release where CVE-2026-5704 has a known fix. Run the listed command on that distro to remediate.

Ubuntu bionic

Source: Ubuntu USN

  • tar→ fixed in1.29b-2ubuntu0.4+esm2USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.29b-2ubuntu0.4+esm2USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu focal

Source: Ubuntu USN

  • tar→ fixed in1.30+dfsg-7ubuntu0.20.04.4+esm1USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.30+dfsg-7ubuntu0.20.04.4+esm1USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu jammy

Source: Ubuntu USN

  • tar→ fixed in1.34+dfsg-1ubuntu0.1.22.04.3USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.34+dfsg-1ubuntu0.1.22.04.3USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu noble

Source: Ubuntu USN

  • tar→ fixed in1.35+dfsg-3ubuntu0.1USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.35+dfsg-3ubuntu0.1USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu resolute

Source: Ubuntu USN

  • tar→ fixed in1.35+dfsg-4ubuntu0.1USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.35+dfsg-4ubuntu0.1USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu trusty

Source: Ubuntu USN

  • tar→ fixed in1.27.1-1ubuntu0.1+esm5USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.27.1-1ubuntu0.1+esm5USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts

Ubuntu xenial

Source: Ubuntu USN

  • tar→ fixed in1.28-2.1ubuntu0.2+esm4USN-8477-1
    sudo apt-get install --only-upgrade -y tar
  • tar-scripts→ fixed in1.28-2.1ubuntu0.2+esm4USN-8477-1
    sudo apt-get install --only-upgrade -y tar-scripts
Are YOU affected by CVE-2026-5704?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2026-5704dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. From $9/mo, 14-day free trial, cancel anytime.

See StackPatch (from $9/mo)