Insecure Temporary File Creation Affecting nano package, versions [,8.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (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-UNMANAGED-NANO-7222575
  • published9 Jun 2024
  • disclosed28 Apr 2024
  • creditUnknown

Introduced: 28 Apr 2024

CVE-2024-5742  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

Upgrade nano to version 8.0 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Temporary File Creation through the manipulation of file permissions and ownership. An attacker can alter file permissions and ownership by running chmod and chown commands on filenames. This is only exploitable if the attacker has the ability to access the Nano session of another user.

References

CVSS Base Scores

version 3.1