Link Following Affecting bsdtar-debuginfo package, versions <0:3.5.3-2.amzn2023.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (27th 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-AMZN2023-BSDTARDEBUGINFO-3347503
  • published7 Mar 2023
  • disclosed23 Aug 2022

Introduced: 23 Aug 2022

CVE-2021-31566  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 bsdtar-debuginfo to version 0:3.5.3-2.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2023-071.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bsdtar-debuginfo package and not the bsdtar-debuginfo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of a file outside of the archive. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to gain more privileges in a system.

CVSS Scores

version 3.1