{"id":"CVE-2019-25016","aliases":["ALPINE-CVE-2019-25016","EUVD-2019-11469","GHSA-59xc-99wg-3hgf"],"status":"published","title":"There is an unsafe incomplete reset of PATH in OpenDoas 6.6 through 6.8 when changing the user...","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02823,"percentile":0.86675,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-459","CWE-732","CWE-909"],"published":"2021-01-28T19:38:24Z","modified":"2026-11-04T02:45:23Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"doas","fixed_in":["6.6.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"doas","fixed_in":["6.6.1-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"doas","fixed_in":["6.6.1-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"doas","fixed_in":["6.8-r1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.1-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.1-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"doas","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8-r1"}]}]}],"products":[{"vendor":"opendoas_project","product":"opendoas"}],"references":[{"url":"https://github.com/Duncaen/OpenDoas/commit/01c658f8c45cb92a343be5f32aa6da70b2032168","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/Duncaen/OpenDoas/issues/45","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/Duncaen/OpenDoas/releases/tag/v6.8.1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://github.com/Duncaen/OpenDoas/commit/d5acd52e2a15c36a8e06f9103d35622933aa422d","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://security.gentoo.org/glsa/202107-11","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25016"},{"url":"https://github.com/advisories/GHSA-59xc-99wg-3hgf"},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-25016","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2019-25016","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","status":"published","published":"2021-01-28T19:38:24Z","modified":"2024-08-05T03:00:19.238Z","updated_at":"2026-11-02T14:20:19.737165Z"}],"euvd":[{"id":"EUVD-2019-11469","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","status":"published","published":"2021-01-28T19:38:24Z","modified":"2024-08-05T03:00:19Z","updated_at":"2026-11-03T02:40:19.824838Z"}],"ghsa":[{"id":"GHSA-59xc-99wg-3hgf","title":"There is an unsafe incomplete reset of PATH in OpenDoas 6.6 through 6.8 when changing the user...","description":"There is an unsafe incomplete reset of PATH in OpenDoas 6.6 through 6.8 when changing the user context.","status":"published","published":"2022-05-24T17:40:29Z","modified":"2023-01-29T05:05:31Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-459","CWE-732"],"updated_at":"2026-11-02T14:45:48.864861Z"}],"nvd":[{"id":"CVE-2019-25016","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","status":"published","published":"2021-01-28T20:15:12.663Z","modified":"2026-06-17T02:31:29.233Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-459","CWE-909"],"updated_at":"2026-11-02T14:05:48.502374Z"}],"osv":[{"id":"ALPINE-CVE-2019-25016","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","status":"published","published":"2021-01-28T20:15:12.663Z","modified":"2026-11-03T06:31:57.383450126Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:18:15.355745Z"},{"id":"CVE-2019-25016","description":"In OpenDoas from 6.6 to 6.8 the users PATH variable was incorrectly inherited by authenticated executions if the authenticating rule allowed the user to execute any command. Rules that only allowed to authenticated user to execute specific commands were not affected by this issue.","status":"published","published":"2021-01-28T20:15:12.663Z","modified":"2026-11-04T07:07:03.2663584Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-04T07:32:23.735279Z"}]}}
