{"id":"CVE-2021-40084","aliases":["DEBIAN-CVE-2021-40084","EUVD-2021-27274","GHSA-2hgh-26fm-566h","UBUNTU-CVE-2021-40084"],"status":"published","title":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell...","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02933,"percentile":0.87204,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-94"],"published":"2021-08-25T00:21:25Z","modified":"2026-10-23T18:03:33Z","fixes":[{"ecosystem":"Debian:12","package":"opensysusers","fixed_in":["0.6-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"opensysusers","fixed_in":["0.6-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"opensysusers","fixed_in":["0.6-3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6-3"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.1-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6-2","0.6-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.3-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.3-4.1","0.7.3-5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"opensysusers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.3-5","0.7.3-5.1"]}],"products":[{"vendor":"artixlinux","product":"opensysusers"}],"references":[{"url":"https://bugs.debian.org/992058","tags":["x_refsource_MISC","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence","report"]},{"url":"https://github.com/artix-linux/opensysusers/releases","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40084"},{"url":"https://github.com/advisories/GHSA-2hgh-26fm-566h"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40084","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40084","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40084","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-40084","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T00:21:25Z","modified":"2024-08-04T02:27:31.611Z","updated_at":"2026-11-02T14:33:01.852999Z"}],"euvd":[{"id":"EUVD-2021-27274","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T00:21:25Z","modified":"2024-08-04T02:27:31Z","updated_at":"2026-11-03T03:24:21.368958Z"}],"ghsa":[{"id":"GHSA-2hgh-26fm-566h","title":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell...","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2022-05-24T19:12:13Z","modified":"2023-01-27T05:03:40Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:42:17.713098Z"}],"nvd":[{"id":"CVE-2021-40084","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T01:15:12.957Z","modified":"2026-06-17T04:06:29.477Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:06:57.67549Z"}],"osv":[{"id":"CVE-2021-40084","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T01:15:12.957Z","modified":"2026-10-20T10:54:56.119254426Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40084","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T01:15:12.957Z","modified":"2026-10-23T18:03:33.058468615Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-40084","description":"opensysusers through 0.6 does not safely use eval on files in sysusers.d that may contain shell metacharacters. For example, it allows command execution via a crafted GECOS field whereas systemd-sysusers (a program with the same specification) does not do that.","status":"published","published":"2021-08-25T01:15:00Z","modified":"2026-05-20T16:05:12.396899461Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:28.526929Z"}]}}
