Embedded Malicious Code Affecting xz package, versions <5.6.1-r2


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
90.95% (100th 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-ALPINE320-XZ-7012744
  • published23 May 2024
  • disclosed29 Mar 2024

Introduced: 29 Mar 2024

Malicious CVE-2024-3094  (opens in a new tab)
CWE-506  (opens in a new tab)

How to fix?

Upgrade Alpine:3.20 xz to version 5.6.1-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream xz package and not the xz package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of complex obfuscations, the liblzma build process extracts a prebuilt object file from a disguised test file existing in the source code, which is then used to modify specific functions in the liblzma code. This results in a modified liblzma library that can be used by any software linked against this library, intercepting and modifying the data interaction with this library.

References

CVSS Base Scores

version 3.1