Every CVE Search/ Get API key

CVE-2025-45582

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with...

4.1 MediumFix available

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

0.49%Up 0.5 points since Jul 12, 2025
90%50%10%1%

What each source reports

CVE List Score used 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
CVE-2025-45582
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Weakness
CWE-24
Updated
2026-11-02
EUVDEUVD-2025-21178 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
EUVD-2025-21178
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-f93m-9mq4-2fjj 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with...

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages).

Record
GHSA-f93m-9mq4-2fjj
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Weakness
CWE-24
Updated
2026-11-02
NVD 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
CVE-2025-45582
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Weakness
CWE-24
Updated
2026-11-02
OSVBELL-CVE-2025-45582 4.1
Record
BELL-CVE-2025-45582
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVJLSEC-2025-197 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a...

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
JLSEC-2025-197
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
Show 36 moreShow less
OSVOESA-2026-1091 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1091
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVOESA-2026-1092 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1092
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVOESA-2026-1093 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1093
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVOESA-2026-1094 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1094
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVOESA-2026-1095 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1095
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVOESA-2026-1096 4.1

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.(CVE-2025-45582)

Record
OESA-2026-1096
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:0002 5.6

Red Hat Security Advisory: tar security update

Record
RHSA-2026:0002
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:0067 5.6

Red Hat Security Advisory: tar security update

Record
RHSA-2026:0067
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:0135 5.6

Red Hat Security Advisory: tar security update

Record
RHSA-2026:0135
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:0434 5.6

Red Hat Security Advisory: tar security update

Record
RHSA-2026:0434
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:0435 5.6

Red Hat Security Advisory: tar security update

Record
RHSA-2026:0435
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:70390 5.6

Red Hat Security Advisory: tar security, bug fix, and enhancement update

Record
RHSA-2026:70390
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRLSA-2026:0002 5.6

Moderate: tar security update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2026:0002
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRLSA-2026:0067 5.6

Moderate: tar security update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2026:0067
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRLSA-2026:70390 5.6

Moderate: tar security, bug fix, and enhancement update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)

  • tar: tar: Hidden file injection via crafted archives (CVE-2026-5704)

  • tar: tar: TOCTOU in incremental dumpdir 'X' rename handling allows restore path escape (CVE-2026-18477)

  • tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite (CVE-2026-18508)

Bug Fix(es) and Enhancement(s):

  • tar: --one-top-level with absolute path fails [rhel-8.10.z] (JIRA:Rocky Linux-144019)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2026:70390
CVSS 3.1
5.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2025-45582 4.1

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
UBUNTU-CVE-2025-45582
CVSS 3.1
4.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-02
OSVALSA-2026:0002 No score

Moderate: tar security update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2026:0002
Updated
2026-11-02
OSVALSA-2026:0067 No score

Moderate: tar security update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2026:0067
Updated
2026-11-02
OSVALSA-2026:70390 No score

Moderate: tar security, bug fix, and enhancement update

The GNU tar program can save multiple files in an archive and restore files from an archive.

Security Fix(es):

  • tar: Tar path traversal (CVE-2025-45582)
  • tar: tar: Hidden file injection via crafted archives (CVE-2026-5704)
  • tar: tar: TOCTOU in incremental dumpdir 'X' rename handling allows restore path escape (CVE-2026-18477)
  • tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite (CVE-2026-18508)

Bug Fix(es) and Enhancement(s):

  • tar: --one-top-level with absolute path fails [almalinux-8.10.z] (JIRA:AlmaLinux-144019)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2026:70390
Updated
2026-11-02
OSVAZL-65082 No score

CVE-2025-45582 affecting package tar 1.35-2

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
AZL-65082
Updated
2026-11-02
OSVAZL-65538 No score

CVE-2025-45582 affecting package tar 1.34-3

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.

Record
AZL-65538
Updated
2026-11-02
OSVCLSA-2026-1769513855 No score

tar: Fix of CVE-2025-45582

  • CVE-2025-45582: fixed path traversal vulnerability using malicious archive extraction
Record
CLSA-2026-1769513855
Updated
2026-11-02
OSVCLSA-2026-1769598463 No score

tar: Fix of CVE-2025-45582

  • CVE-2025-45582: fixed path traversal vulnerability using malicious archive extraction
Record
CLSA-2026-1769598463
Updated
2026-11-02
OSVMGASA-2026-0401 No score

Updated tar packages fix security vulnerabilities

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. (CVE-2025-45582) Tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape. (CVE-2026-18477) Tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite. (CVE-2026-18508)

Record
MGASA-2026-0401
Updated
2026-11-02
OSVopenSUSE-SU-2026:10743-1 No score

tar-1.35-7.1 on GA media

These are all security issues fixed in the tar-1.35-7.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:10743-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:20472-1 No score

Security update for tar

This update for tar fixes the following issue:

Security issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).

Non security issue:

  • Fixes tar creating invalid tarballs when used with --delete (bsc#1246607)
Record
openSUSE-SU-2026:20472-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21070-1 No score

Security update for tar

This update for tar fixes the following issues

  • CVE-2026-5704: crafted archives can be used to to hide file injection (bsc#1261900).
  • Fix --dereference/-h not working properly after CVE-2025-45582 fix (bsc#1265450).
Record
openSUSE-SU-2026:21070-1
Updated
2026-11-02
OSVSUSE-SU-2026:1177-1 No score

Security update for tar

This update for tar fixes the following issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).
Record
SUSE-SU-2026:1177-1
Updated
2026-11-02
OSVSUSE-SU-2026:20955-1 No score

Security update for tar

This update for tar fixes the following issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).
Record
SUSE-SU-2026:20955-1
Updated
2026-11-02
OSVSUSE-SU-2026:20959-1 No score

Security update for tar

This update for tar fixes the following issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).
Record
SUSE-SU-2026:20959-1
Updated
2026-11-02
OSVSUSE-SU-2026:21002-1 No score

Security update for tar

This update for tar fixes the following issue:

Security issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).

Non security issue:

  • Fixes tar creating invalid tarballs when used with --delete (bsc#1246607)
Record
SUSE-SU-2026:21002-1
Updated
2026-11-02
OSVSUSE-SU-2026:21143-1 No score

Security update for tar

This update for tar fixes the following issue:

Security issue:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).

Non security issue:

  • Fixes tar creating invalid tarballs when used with --delete (bsc#1246607)
Record
SUSE-SU-2026:21143-1
Updated
2026-11-02
OSVSUSE-SU-2026:22289-1 No score

Security update for tar

This update for tar fixes the following issues

  • CVE-2026-5704: crafted archives can be used to to hide file injection (bsc#1261900).
  • Fix --dereference/-h not working properly after CVE-2025-45582 fix (bsc#1265450).
Record
SUSE-SU-2026:22289-1
Updated
2026-11-02
OSVSUSE-SU-2026:22377-1 No score

Security update for tar

This update for tar fixes the following issues

  • CVE-2026-5704: crafted archives can be used to to hide file injection (bsc#1261900).
  • Fix --dereference/-h not working properly after CVE-2025-45582 fix (bsc#1265450).
Record
SUSE-SU-2026:22377-1
Updated
2026-11-02
OSVSUSE-SU-2026:2615-1 No score

Security update for tar

This update for tar fixes the following issues:

Upgrade tar to version 1.34 (jsc#PED-16073).

Security issues fixed:

  • CVE-2025-45582: file overwrite via directory traversal in crafted TAR archives (bsc#1246399).

Other updates and bugfixes:

  • Changes from 1.28:
    • New --one-top-level option: extract all files into a subdirectory named after the archive base name
    • New --sort option: sort directory entries by name or inode when creating archives
    • New exclusion options: --exclude-ignore, --exclude-ignore-recursive, and --exclude-vcs-ignores
    • New checkpoint action: totals; extended checkpoint format specifiers
    • Official tar(1) and rmt(8) manpages now provided upstream
    • Refuse to read from or write archives to a tty device
  • Changes from 1.29:
    • New --verbatim-files-from option: treat each line in a file list as a literal file name regardless of leading dashes
  • Changes from 1.30:
    • Member names containing '..' components are now skipped on extraction (security hardening)
    • Erroneous use of position-sensitive options is now reported
    • --numeric-owner now applies to private (pax) headers too
    • Fixed --delay-directory-restore in several edge cases
    • New --warnings=failed-read option to suppress unreadable-file warnings when combined with --ignore-failed-read
  • Changes from 1.32:
    • POSIX extended format headers no longer include PID by default
    • Wildcards in --exclude-vcs-ignore mode no longer match slashes
    • Fixed --no-overwrite-dir option
    • Fixed handling of chained renames in incremental backups
    • Link counting works for file names supplied via -T
  • Changes from 1.33:
    • Fix extraction over pipe
    • Fix memory leak in read_header
    • Fix extraction when . and .. are unreadable
    • Gracefully handle duplicate symlinks when extracting
    • Re-initialise supplementary groups when switching to user privileges
Record
SUSE-SU-2026:2615-1
Updated
2026-11-02
OSVUSN-8510-1 No score

tar vulnerability

It was discovered that tar incorrectly handled symlinks when extracting archives. An attacker could possibly use this issue to overwrite arbitrary files.

Record
USN-8510-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tar
AlmaLinux:10
before 2:1.35-9.el10_1
2:1.35-9.el10_1
tar
AlmaLinux:9
before 2:1.34-9.el9_7
2:1.34-9.el9_7
tar
AlmaLinux:8
From an advisory covering 4 CVEs
before 2:1.30-13.el8_10
2:1.30-13.el8_10
tar
Azure Linux:3
through 1.35-2 None known
tar
Azure Linux:2
through 1.34-3 None known
tar
Alpaquita:23
1.34-r1 and later None known
tar
Alpaquita:stream
1.34-r2 and later None known
tar
TuxCare:AlmaLinux:9.6
before 2:1.34-7.el9.tuxcare.els1
2:1.34-7.el9.tuxcare.els1
tar
TuxCare:AlmaLinux:9.2
before 2:1.34-7.el9.tuxcare.els1
2:1.34-7.el9.tuxcare.els1
Tar_jll
Julia
before 1.35.0+0
1.35.0+0
Show 62 moreShow less
Affected packages
PackageAffectedFixed
tar
Mageia:10
From an advisory covering 3 CVEs
before 1.35-4.1.mga10
1.35-4.1.mga10
tar
Mageia:9
From an advisory covering 3 CVEs
before 1.35-4.1.mga9
1.35-4.1.mga9
tar
openEuler:22.03-LTS-SP4
before 1.34-6.oe2203sp4
1.34-6.oe2203sp4
tar
openEuler:24.03-LTS
before 1.35-3.oe2403
1.35-3.oe2403
tar
openEuler:24.03-LTS-SP1
before 1.35-3.oe2403sp1
1.35-3.oe2403sp1
tar
openEuler:24.03-LTS-SP2
before 1.35-3.oe2403sp2
1.35-3.oe2403sp2
tar
openEuler:24.03-LTS-SP3
before 1.35-3.oe2403sp3
1.35-3.oe2403sp3
tar
openEuler:22.03-LTS-SP3
before 1.34-6.oe2203sp3
1.34-6.oe2203sp3
tar
Red Hat:enterprise_linux:10.1
before 2:1.35-9.el10_1
2:1.35-9.el10_1
tar-debuginfo
Red Hat:enterprise_linux:10.1
before 2:1.35-9.el10_1
2:1.35-9.el10_1
tar-debugsource
Red Hat:enterprise_linux:10.1
before 2:1.35-9.el10_1
2:1.35-9.el10_1
tar
Red Hat:enterprise_linux:9::baseos
before 2:1.34-9.el9_7
2:1.34-9.el9_7
tar-debuginfo
Red Hat:enterprise_linux:9::baseos
before 2:1.34-9.el9_7
2:1.34-9.el9_7
tar-debugsource
Red Hat:enterprise_linux:9::baseos
before 2:1.34-9.el9_7
2:1.34-9.el9_7
tar
Red Hat:enterprise_linux_eus:10.0
before 2:1.35-7.el10_0.2
2:1.35-7.el10_0.2
tar
Red Hat:rhel_eus:9.4::baseos
before 2:1.34-6.el9_4.3
2:1.34-6.el9_4.3
tar-debuginfo
Red Hat:rhel_eus:9.4::baseos
before 2:1.34-6.el9_4.3
2:1.34-6.el9_4.3
tar-debugsource
Red Hat:rhel_eus:9.4::baseos
before 2:1.34-6.el9_4.3
2:1.34-6.el9_4.3
tar
Red Hat:rhel_eus:9.6::baseos
before 2:1.34-7.el9_6.2
2:1.34-7.el9_6.2
tar
Red Hat:enterprise_linux:8::baseos
From an advisory covering 4 CVEs
before 2:1.30-13.el8_10
2:1.30-13.el8_10
tar-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 4 CVEs
before 2:1.30-13.el8_10
2:1.30-13.el8_10
tar-debugsource
Red Hat:enterprise_linux:8::baseos
From an advisory covering 4 CVEs
before 2:1.30-13.el8_10
2:1.30-13.el8_10
tar
Rocky Linux:10
before 2:1.35-9.el10_1
2:1.35-9.el10_1
tar
Rocky Linux:9
before 2:1.34-9.el9_7
2:1.34-9.el9_7
tar
Rocky Linux:8
From an advisory covering 4 CVEs
before 2:1.30-13.el8_10
2:1.30-13.el8_10
tar
SUSE:Linux Enterprise Micro 5.3
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Micro 5.4
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Micro 5.5
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Module for Basesystem 15 SP7
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server 15 SP5-LTSS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server 15 SP6-LTSS
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Server for SAP Applications 15 SP6
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Enterprise Micro 5.2
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
openSUSE:Leap 15.6
before 1.34-150000.3.37.1
1.34-150000.3.37.1
tar
SUSE:Linux Micro 6.1
before 1.35-slfo.1.1_3.1
1.35-slfo.1.1_3.1
tar
SUSE:Linux Micro 6.0
before 1.35-3.1
1.35-3.1
tar
SUSE:Linux Micro 6.2
before 1.35-160000.3.1
1.35-160000.3.1
tar
SUSE:Linux Enterprise Server 16.0
before 1.35-160000.3.1
1.35-160000.3.1
tar
SUSE:Linux Enterprise Server for SAP applications 16.0
before 1.35-160000.3.1
1.35-160000.3.1
tar
SUSE:Linux Micro 6.2
From an advisory covering 2 CVEs
before 1.35-160000.4.1
1.35-160000.4.1
tar
SUSE:Linux Enterprise Server 16.0
From an advisory covering 2 CVEs
before 1.35-160000.4.1
1.35-160000.4.1
tar
SUSE:Linux Enterprise Server for SAP applications 16.0
From an advisory covering 2 CVEs
before 1.35-160000.4.1
1.35-160000.4.1
tar
SUSE:Linux Enterprise Server 12 SP5-LTSS
before 1.34-15.27.1
1.34-15.27.1
tar
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
before 1.34-15.27.1
1.34-15.27.1
tar
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
1.26+dfsg-81.27-31.27-41.27.1-11.27.1-1ubuntu0.1
Show 7 moreShow less
1.27.1-1ubuntu0.1+esm11.27.1-1ubuntu0.1+esm21.27.1-1ubuntu0.1+esm31.27.1-1ubuntu0.1+esm41.27.1-1ubuntu0.1+esm51.27.1-1ubuntu0.1+esm61.27.1-1ubuntu0.1+esm7
None known
tar
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.27.1-21.28-2ubuntu11.28-2.11.28-2.1ubuntu0.11.28-2.1ubuntu0.2
Show 6 moreShow less
1.28-2.1ubuntu0.2+esm11.28-2.1ubuntu0.2+esm21.28-2.1ubuntu0.2+esm31.28-2.1ubuntu0.2+esm41.28-2.1ubuntu0.2+esm51.28-2.1ubuntu0.2+esm6
None known
tar
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
1.29b-21.29b-2ubuntu0.11.29b-2ubuntu0.21.29b-2ubuntu0.31.29b-2ubuntu0.4
Show 4 moreShow less
1.29b-2ubuntu0.4+esm11.29b-2ubuntu0.4+esm21.29b-2ubuntu0.4+esm31.29b-2ubuntu0.4+esm4
None known
tar
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
1.30+dfsg-61.30+dfsg-71.30+dfsg-7ubuntu0.20.04.11.30+dfsg-7ubuntu0.20.04.21.30+dfsg-7ubuntu0.20.04.3
Show 4 moreShow less
1.30+dfsg-7ubuntu0.20.04.41.30+dfsg-7ubuntu0.20.04.4+esm11.30+dfsg-7ubuntu0.20.04.4+esm21.30+dfsg-7ubuntu0.20.04.4+esm3
None known
tar
Ubuntu:22.04:LTS
before 1.34+dfsg-1ubuntu0.1.22.04.4, plus listed versions
1.34+dfsg-1build11.34+dfsg-1build21.34+dfsg-1build31.34+dfsg-1ubuntu0.1.22.04.11.34+dfsg-1ubuntu0.1.22.04.21.34+dfsg-1ubuntu0.1.22.04.3
1.34+dfsg-1ubuntu0.1.22.04.4
tar
Ubuntu:24.04:LTS
before 1.35+dfsg-3ubuntu0.2, plus listed versions
1.34+dfsg-1.2ubuntu11.34+dfsg-1.2ubuntu21.34+dfsg-1.3ubuntu11.34+dfsg-1.41.35+dfsg-2~build1
Show 4 moreShow less
1.35+dfsg-21.35+dfsg-31.35+dfsg-3build11.35+dfsg-3ubuntu0.1
1.35+dfsg-3ubuntu0.2
tar
Ubuntu:25.10
All versions, plus listed versions
1.35+dfsg-3.11.35+dfsg-3.1build1
None known
tar
Ubuntu:26.04:LTS
before 1.35+dfsg-4ubuntu0.2, plus listed versions
1.35+dfsg-3.1build11.35+dfsg-3.1build21.35+dfsg-41.35+dfsg-4ubuntu0.1
1.35+dfsg-4ubuntu0.2
tar
openSUSE:Tumbleweed
before 1.35-7.1
1.35-7.1
tar
openSUSE:Leap 16.0
before 1.35-160000.3.1
1.35-160000.3.1
tar
openSUSE:Leap 16.0
From an advisory covering 2 CVEs
before 1.35-160000.4.1
1.35-160000.4.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-45582 is a medium vulnerability (CVSS 4.1) in Gnu Tar, published July 11, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in tar 2:1.35-9.el10_1.

References

Show 70 moreShow less
MoveEnter Open