portage-ng / portage / app-admin / doas / 6.8.2
portage-ng glsa
1 advisory reference app-admin/doas · none place version 6.8.2 in a vulnerable range
▸ GLSA 202107-11 OpenDoas: Insufficient environment filtering this version unaffected normal local 2021-07-07

A vulnerability in OpenDoas could lead to privilege escalation.

Announced
2021-07-07
Revised
2021-07-07
Access
local
Bugs
#767781
Advisory
https://security.gentoo.org/glsa/202107-11

Affected packages

PackageArchVulnerableUnaffected
app-admin/doas*< 6.8.1>= 6.8.1

Background

OpenDoas allows users to run commands as other users.

Description

OpenDoas does not properly filter the PATH variable from the resulting shell after escalating privileges.

Impact

A local attacker with control of a user’s PATH variable could escalate privileges if that user uses OpenDoas with a poisoned PATH variable.

Workaround

There is no known workaround at this time.

Resolution

All OpenDoas users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-admin/doas-6.8.1"

References