{
  "threat_severity" : "Low",
  "public_date" : "2018-04-24T00:00:00Z",
  "bugzilla" : {
    "description" : "setup: nologin listed in /etc/shells violates security expectations",
    "id" : "1571094",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1571094"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.8",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-285",
  "details" : [ "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.", "Setup 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." ],
  "statement" : "Preventing a user from accessing the system without deleting their account is not a simple matter. For utmost security, the account should be deleted. Short of this, we recommend a three-pronged approach:\n* change the user's login shell to a harmless command that is not in \"/etc/shells\" (for example \"/bin/false\") to prevent commands being run on their behalf\n* lock the user's password with \"usermod -L\" to prevent authentication with pam services\n* prevent access to the user's home directory with \"chmod 0\" or \"chown root\" and \"chmod 700\" to prevent authentication with ssh keys etc",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2018-10-30T00:00:00Z",
    "advisory" : "RHSA-2018:3249",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "setup-0:2.8.71-10.el7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Will not fix",
    "package_name" : "setup",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Fix deferred",
    "package_name" : "setup",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "setup",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2018-1113\nhttps://nvd.nist.gov/vuln/detail/CVE-2018-1113" ],
  "name" : "CVE-2018-1113",
  "csaw" : false
}