The Ubuntu-specific language helper scripts (save-to-pam-env, update-langlist) shipped with accountsservice before 23.13.9-8ubuntu7 treat the user-controlled LANGUAGE entry in ~/.pam_environment as trusted input. The value is interpolated unescaped into a GNU sed replacement expression, allowing an attacker to inject a sed 'e' flag and arbitrary shell commands that execute with the privileges of the AccountsService helper process (real UID 0) via the SetLanguage D-Bus method.
22.07.5-2ubuntu1.623.13.9-2ubuntu6.123.13.9-8ubuntu5.20.6.35-0ubuntu7.3+esm40.6.40-2ubuntu11.6+esm20.6.45-1ubuntu1.3+esm20.6.55-0ubuntu12~20.04.7+esm1Exploitability
AV:LAC:LPR:LUI:NScope
S:UImpact
C:HI:HA:HCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H