{"id":"CVE-2018-7169","aliases":["CLSA-2022-1643637259","DEBIAN-CVE-2018-7169","EUVD-2018-18911","GHSA-m2px-jr9v-8hhp","MGASA-2018-0177","SUSE-SU-2018:0662-1","UBUNTU-CVE-2018-7169","USN-5254-1","openSUSE-SU-2024:11378-1"],"status":"published","title":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an...","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01566,"percentile":0.75478,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-732"],"published":"2018-02-15T19:00:00Z","modified":"2026-10-24T10:30:24Z","fixes":[{"ecosystem":"Debian:12","package":"shadow","fixed_in":["1:4.7-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"shadow","fixed_in":["1:4.7-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"shadow","fixed_in":["1:4.7-1"],"sources":["osv"]},{"ecosystem":"Mageia:5","package":"shadow-utils","fixed_in":["4.2.1-6.2.mga5"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"shadow-utils","fixed_in":["4.4-1.2.mga6"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"shadow","fixed_in":["4.2.1-27.6.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"shadow","fixed_in":["1:4.1.5.1-1ubuntu9.5+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"shadow","fixed_in":["1:4.2-3.1ubuntu5.5+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"shadow","fixed_in":["1:4.5-1ubuntu2.2"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"shadow","fixed_in":["4.9-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"login","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2-3.1ubuntu5.5+tuxcare.els1"}]}],"bundled":2},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"passwd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2-3.1ubuntu5.5+tuxcare.els1"}]}],"bundled":2},{"source":"osv","ecosystem":"TuxCare:Ubuntu:16.04","package":"uidmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2-3.1ubuntu5.5+tuxcare.els1"}]}],"bundled":2},{"source":"osv","ecosystem":"Debian:12","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.7-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.7-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.7-1"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"shadow-utils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-6.2.mga5"}]}]},{"source":"osv","ecosystem":"Mageia:6","package":"shadow-utils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4-1.2.mga6"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.1-27.6.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.1.5.1-1ubuntu9.5+esm1"}]}],"versions":["1:4.1.5.1-1ubuntu6","1:4.1.5.1-1ubuntu7","1:4.1.5.1-1ubuntu8","1:4.1.5.1-1ubuntu9","1:4.1.5.1-1ubuntu9.1","1:4.1.5.1-1ubuntu9.2","1:4.1.5.1-1ubuntu9.4","1:4.1.5.1-1ubuntu9.5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2-3.1ubuntu5.5+esm1"}]}],"versions":["1:4.1.5.1-1.1ubuntu7","1:4.2-3.1ubuntu1","1:4.2-3.1ubuntu2","1:4.2-3.1ubuntu3","1:4.2-3.1ubuntu4","1:4.2-3.1ubuntu5","1:4.2-3.1ubuntu5.2","1:4.2-3.1ubuntu5.3","1:4.2-3.1ubuntu5.4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.5-1ubuntu2.2"}]}],"versions":["1:4.2-3.2ubuntu4","1:4.5-1ubuntu1","1:4.5-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.1.5.1-1ubuntu9.5+esm1"}]}],"versions":["1:4.1.5.1-1ubuntu6","1:4.1.5.1-1ubuntu7","1:4.1.5.1-1ubuntu8","1:4.1.5.1-1ubuntu9","1:4.1.5.1-1ubuntu9.1","1:4.1.5.1-1ubuntu9.2","1:4.1.5.1-1ubuntu9.4","1:4.1.5.1-1ubuntu9.5"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2-3.1ubuntu5.5+esm1"}]}],"versions":["1:4.1.5.1-1.1ubuntu7","1:4.2-3.1ubuntu1","1:4.2-3.1ubuntu2","1:4.2-3.1ubuntu3","1:4.2-3.1ubuntu4","1:4.2-3.1ubuntu5","1:4.2-3.1ubuntu5.2","1:4.2-3.1ubuntu5.3","1:4.2-3.1ubuntu5.4"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.5-1ubuntu2.2"}]}],"versions":["1:4.2-3.2ubuntu4","1:4.5-1ubuntu1","1:4.5-1ubuntu2"],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"shadow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-1.1"}]}]}],"products":[{"vendor":"shadow_project","product":"shadow"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1729357","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://security.gentoo.org/glsa/201805-09","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7169"},{"url":"https://github.com/advisories/GHSA-m2px-jr9v-8hhp"},{"url":"https://errata.cloudlinux.com/ubuntu16_04/CLSA-2022-1643637259","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-7169","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0177.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22766","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2018-03/msg00036.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180662-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1081294","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7169","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-7169","tags":["report"]},{"url":"https://github.com/shadow-maint/shadow/pull/97","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5254-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7169","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-12424","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2018-7169","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T19:00:00Z","modified":"2024-08-05T06:24:10.505Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2018-18911","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T19:00:00Z","modified":"2024-08-05T06:24:10Z","updated_at":"2026-11-03T02:40:06.682302Z"}],"ghsa":[{"id":"GHSA-m2px-jr9v-8hhp","title":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an...","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2022-05-13T01:53:16Z","modified":"2023-02-02T05:02:16Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:51:23.915291Z"}],"nvd":[{"id":"CVE-2018-7169","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T20:29:00.867Z","modified":"2026-06-17T02:02:43.91Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7169","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T20:29:00.867Z","modified":"2026-10-24T10:30:24.784008331Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-7169","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T20:29:00.867Z","modified":"2026-10-23T18:03:08.102431045Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-7169","description":"An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used \"group blacklisting\" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.","status":"published","published":"2018-02-15T20:29:00Z","modified":"2026-02-04T04:18:40.180078Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"CLSA-2022-1643637259","title":"Fix CVE(s): CVE-2017-12424, CVE-2018-7169","description":"\n   * SECURITY UPDATE: Crash or buffer overflow\n     - debian/patches/CVE-2017-12424.patch: fix buffer overflow if\n       NULL line is present in db in lib/commonio.c.\n     - CVE-2017-12424\n   * SECURITY UPDATE: Access to privileged information\n     - debian/patches/CVE-2018-7169.patch: newgidmap:\n       enforce setgroups=deny if self-mapping a group in\n       src/newgidmap.c.\n     - CVE-2018-7169","status":"published","published":"2022-01-31T13:54:19Z","modified":"2026-06-04T10:04:03.253692Z","updated_at":"2026-11-02T15:43:39.801198Z"},{"id":"MGASA-2018-0177","title":"Updated shadow-utils packages fix security vulnerability","description":"Privilege escalation in newgidmap, which allowed an unprivileged user\nto be placed in a user namespace where setgroups(2) is allowed\n(CVE-2018-7169).\n","status":"published","published":"2018-03-19T12:13:14Z","modified":"2026-04-16T06:26:00.484787283Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:11378-1","title":"libsubid-devel-4.9-1.1 on GA media","description":"These are all security issues fixed in the libsubid-devel-4.9-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:03:45.102948Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2018:0662-1","title":"Security update for shadow","description":"This update for shadow fixes the following issues:\n\n- CVE-2018-7169: Fixed an privilege escalation in newgidmap,\n  which allowed an unprivileged user to be placed in a user namespace where\n  setgroups(2) is allowed. (bsc#1081294)\n","status":"published","published":"2018-03-12T12:14:09Z","modified":"2026-02-04T02:13:30.871707Z","updated_at":"2026-11-02T15:53:44.594517Z"},{"id":"USN-5254-1","title":"shadow vulnerabilities","description":"It was discovered that shadow incorrectly handled certain inputs.\nAn attacker could possibly use this issue to cause a crash or\nexpose sensitive information. This issue only affected\nUbuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2017-12424)\n\nIt was discovered that shadow incorrectly handled certain inputs.\nAn attacker could possibly use this issue to expose sensitive information.\n(CVE-2018-7169)\n","status":"published","published":"2022-01-27T14:29:40Z","modified":"2026-06-29T13:49:35.528888755Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
