CVE-2026-61898 accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
HighCVSS 7.8
EPSS 0.19%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Canonical accountsservice | >= 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 | 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7 | Fixed |
| ubuntu/accountsservice(Ubuntu 22.04) | < 22.07.5-2ubuntu1.6 | 22.07.5-2ubuntu1.6 | Fixed |
| ubuntu/accountsservice(Ubuntu 24.04) | < 23.13.9-2ubuntu6.1 | 23.13.9-2ubuntu6.1 | Fixed |
| ubuntu/accountsservice(Ubuntu 26.04) | < 23.13.9-8ubuntu5.2 | 23.13.9-8ubuntu5.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Canonical accountsservice | >= 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6 | 22.07.5-2ubuntu1.6 |
| Canonical accountsservice | >= 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1 | 23.13.9-2ubuntu6.1 |
| Canonical accountsservice | >= 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2 | 23.13.9-8ubuntu5.2 |
| Canonical accountsservice | >= 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7 | 23.13.9-8ubuntu7 |
| ubuntu/accountsservice(Ubuntu:22.04) | < 22.07.5-2ubuntu1.6 | 22.07.5-2ubuntu1.6 |
| ubuntu/accountsservice(Ubuntu:24.04) | < 23.13.9-2ubuntu6.1 | 23.13.9-2ubuntu6.1 |
| ubuntu/accountsservice(Ubuntu:26.04) | < 23.13.9-8ubuntu5.2 | 23.13.9-8ubuntu5.2 |
References
- Launchpad Bug #2157985 issue-tracking
- Ubuntu CVE Tracker vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2520354 issue-tracking
- www.cve.org
- nvd.nist.gov
- USN-8580-1 vendor-advisory
- USN-8580-2 vendor-advisory
- Debian Security Tracker CVE-2026-61898 vendor-advisory
- ENISA EUVD EUVD-2026-63380 third-party-advisory