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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | doas | 6.8-r1 | — |
| Alpine v3.23 | doas | 6.8-r1 | — |
| Alpine v3.22 | doas | 6.8-r1 | — |
| Alpine v3.21 | doas | 6.8-r1 | — |
| Alpine v3.20 | doas | 6.8-r1 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | doas | 6.8-r1 | — |
| Alpine v3.18 | doas | 6.8-r1 | — |
| Alpine v3.17 | doas | 6.8-r1 | — |
| Alpine v3.16 | doas | 6.8-r1 | — |
| Alpine v3.15 | doas | 6.8-r1 | — |
| Alpine v3.14 | doas | 6.8-r1 | — |
| Alpine v3.13 | doas | 6.8-r1 | — |
| Alpine v3.12 | doas | 6.6.1-r2 | — |
| Alpine v3.11 | doas | 6.6.1-r1 | — |
| Alpine v3.10 | doas | 6.6.1-r0 | — |
References
- https://github.com/Duncaen/OpenDoas/commit/01c658f8c45cb92a343be5f32aa6da70b2032168
- https://github.com/Duncaen/OpenDoas/issues/45
- https://github.com/Duncaen/OpenDoas/releases/tag/v6.8.1
- https://github.com/Duncaen/OpenDoas/commit/d5acd52e2a15c36a8e06f9103d35622933aa422d
- GLSA-202107-11 vendor-advisory