Symlink Attack Affecting containers/crun package, versions [,0.10.5)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.56% (67th 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-UNMANAGED-CONTAINERSCRUN-2364990
  • published26 Jan 2022
  • disclosed13 Nov 2019
  • creditUnknown

Introduced: 13 Nov 2019

CVE-2019-18837  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade containers/crun to version 0.10.5 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack. An issue was discovered in crun before 0.10.5. With a crafted image, it doesn't correctly check whether a target is a symlink, resulting in access to files outside of the container. This occurs in libcrun/linux.c and libcrun/chroot_realpath.c.

CVSS Base Scores

version 3.1