Incorrect Permission Assignment for Critical Resource Affecting setup package, versions <0:2.8.71-10.amzn2


Severity

Recommended
low

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.32% (25th 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-AMZN2-SETUP-1668684
  • published27 Sept 2021
  • disclosed3 Jul 2018

Introduced: 3 Jul 2018

CVE-2018-1113  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 setup to version 0:2.8.71-10.amzn2 or higher.
This issue was patched in ALAS2-2019-1158.

NVD Description

Note: Versions mentioned in the description apply only to the upstream setup package and not the setup package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

setup before version 2.11.4-1.fc28 in Fedora and Red Hat Enterprise Linux added /sbin/nologin and /usr/sbin/nologin to /etc/shells. This violates security assumptions made by pam_shells and some daemons which allow access based on a user's shell being listed in /etc/shells. Under some circumstances, users which had their shell changed to /sbin/nologin could still access the system.