CVE-2026-18508

Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite

State
Published
Severity
4.4 Medium
Published
Aug 3, 2026
Updated
Nov 2, 2026
Reserved
Jul 31, 2026

Read the record on cve.org

Description

A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlinks that escape the intended boundary and, when combined with a preexisting symbolic link under the working directory, may allow writing outside that boundary during a single extraction.

Scores

CVSSScoreVectorSource
3.14.4 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:Nredhat

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access

Affected Products

ProductVersions
Red Hat Enterprise Linux 10Red Hat
  • 2:1.35-13.el10_2 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 2:1.30-13.el8_10 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 2:1.34-13.el9_8 and laterNot affected
Red Hat Discovery 2Red Hat
  • 1788205779 and laterNot affected
Red Hat Hardened ImagesRed Hat
  • 1.35-9.2.hum1 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880445 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880464 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880456 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788765051 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880581 and laterNot affected
Red Hat Enterprise Linux 6Red Hat
    Red Hat Enterprise Linux 7Red Hat
      Red Hat Hardened ImagesRed Hat
        Red Hat Hardened ImagesRed Hat
          Red Hat Hardened ImagesRed Hat
            Red Hat Hardened ImagesRed Hat
              Red Hat Hardened ImagesRed Hat
                Red Hat Hardened ImagesRed Hat
                  Red Hat Hardened ImagesRed Hat
                    Red Hat Hardened ImagesRed Hat
                      Red Hat Hardened ImagesRed Hat
                        Red Hat Hardened ImagesRed Hat
                          Red Hat OpenShift Container Platform 4Red Hat
                            Red Hat OpenShift Container Platform 4Red Hat
                              Red Hat OpenShift Container Platform 5Red Hat

                                References

                                Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.