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


low

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.06% (22nd percentile)
Expand this section
NVD
5.3 medium
Expand this section
Red Hat
4.8 medium

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 ID SNYK-AMZN2-SETUP-1668684
  • published 27 Sep 2021
  • disclosed 3 Jul 2018

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.