Canonical accountsservice
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6
- >= 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1
- >= 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2
- >= 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7
Fixed in 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7
Mitigation
Upgrade accountsservice to 22.07.5-2ubuntu1.6 or 23.13.9-2ubuntu6.1 or 23.13.9-8ubuntu5.2 or 23.13.9-8ubuntu7 or later.
References
- Vendor advisory ubuntu.com/security/CVE-2026-61898
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.