Directory Traversal Affecting dotnet-sdk-8.0-source-built-artifacts package, versions <0:8.0.128-1.1.hum1


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.34% (30th 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-RHEL10-DOTNETSDK80SOURCEBUILTARTIFACTS-22997948
  • published27 Nov 2026
  • disclosed9 Jul 2026

Introduced: 9 Jul 2026

CVE-2026-39245  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade RHEL:10 dotnet-sdk-8.0-source-built-artifacts to version 0:8.0.128-1.1.hum1 or higher.
This issue was patched in RHSA-2026:37577.

NVD Description

Note: Versions mentioned in the description apply only to the upstream dotnet-sdk-8.0-source-built-artifacts package and not the dotnet-sdk-8.0-source-built-artifacts package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

decompress before 4.2.2 contains an improper path containment check that enables directory traversal and arbitrary file write. The safeMakeDir function (index.js line 29) and the extraction path validation (index.js line 106) use String.indexOf() to verify the resolved path is within the output directory: realDestinationDir.indexOf(realOutputPath) !== 0. This check is flawed because it does not enforce a path separator boundary. For example, "/tmp/app_config".indexOf("/tmp/app") returns 0, incorrectly passing the check even though /tmp/app_config is outside /tmp/app. Combined with the unvalidated symlink creation in the same package, an attacker can write arbitrary files to directories adjacent to the extraction target. This is a bypass of the fix for CVE-2020-12265. The correct check requires appending a path separator: realParentPath.indexOf(realOutputPath + path.sep) !== 0.

CVSS Base Scores

version 3.1