CVE-2026-61898
published high CVSS 3.1 · 7.8accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Canonical | — | accountsservice22.07.5-2ubuntu1 to < 22.07.5-2ubuntu1.6 · 23.13.9-2ubuntu6 to < 23.13.9-2ubuntu6.1 · 23.13.9-8ubuntu5 to < 23.13.9-8ubuntu5.2 · 23.13.9-8ubuntu6 to < 23.13.9-8ubuntu7 · Other versions: unaffected · Platforms: Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 26.04 LTS, Ubuntu 26.10 | Affected | Not stated | canonical |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | bionic | accountsservice | Advisory build | 0.6.45-1ubuntu1.3+esm2 | USN-8580-2 |
| Ubuntu | focal | accountsservice | Advisory build | 0.6.55-0ubuntu12~20.04.7+esm1 | USN-8580-2 |
| Ubuntu | jammy | accountsservice | Advisory build | 22.07.5-2ubuntu1.6 | USN-8580-1 |
| Ubuntu | noble | accountsservice | Advisory build | 23.13.9-2ubuntu6.1 | USN-8580-1 |
| Ubuntu | resolute | accountsservice | Advisory build | 23.13.9-8ubuntu5.2 | USN-8580-1 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | trusty | accountsservice | Advisory build | 0.6.35-0ubuntu7.3+esm4 | USN-8580-2 |
| Ubuntu | xenial | accountsservice | Advisory build | 0.6.40-2ubuntu11.6+esm2 | USN-8580-2 |
| Ubuntu | bionic | gir1.2-accountsservice-1.0 | Advisory build | 0.6.45-1ubuntu1.3+esm2 | USN-8580-2 |
| Ubuntu | bionic | libaccountsservice0 | Advisory build | 0.6.45-1ubuntu1.3+esm2 | USN-8580-2 |
| Ubuntu | focal | gir1.2-accountsservice-1.0 | Advisory build | 0.6.55-0ubuntu12~20.04.7+esm1 | USN-8580-2 |
| Ubuntu | focal | libaccountsservice0 | Advisory build | 0.6.55-0ubuntu12~20.04.7+esm1 | USN-8580-2 |
| Ubuntu | jammy | gir1.2-accountsservice-1.0 | Advisory build | 22.07.5-2ubuntu1.6 | USN-8580-1 |
| Ubuntu | jammy | libaccountsservice0 | Advisory build | 22.07.5-2ubuntu1.6 | USN-8580-1 |
| Ubuntu | noble | gir1.2-accountsservice-1.0 | Advisory build | 23.13.9-2ubuntu6.1 | USN-8580-1 |
| Ubuntu | noble | libaccountsservice0 | Advisory build | 23.13.9-2ubuntu6.1 | USN-8580-1 |
| Ubuntu | resolute | gir1.2-accountsservice-1.0 | Advisory build | 23.13.9-8ubuntu5.2 | USN-8580-1 |
| Ubuntu | resolute | libaccountsservice0 | Advisory build | 23.13.9-8ubuntu5.2 | USN-8580-1 |
| Ubuntu | trusty | gir1.2-accountsservice-1.0 | Advisory build | 0.6.35-0ubuntu7.3+esm4 | USN-8580-2 |
| Ubuntu | trusty | libaccountsservice0 | Advisory build | 0.6.35-0ubuntu7.3+esm4 | USN-8580-2 |
| Ubuntu | trusty | libpam-pin | Advisory build | 0.6.35-0ubuntu7.3+esm4 | USN-8580-2 |
| Ubuntu | xenial | gir1.2-accountsservice-1.0 | Advisory build | 0.6.40-2ubuntu11.6+esm2 | USN-8580-2 |
| Ubuntu | xenial | libaccountsservice0 | Advisory build | 0.6.40-2ubuntu11.6+esm2 | USN-8580-2 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Canonical | accountsservice | 22.07.5-2ubuntu1 to < 22.07.5-2ubuntu1.6 (affected · dpkg)23.13.9-2ubuntu6 to < 23.13.9-2ubuntu6.1 (affected · dpkg)23.13.9-8ubuntu5 to < 23.13.9-8ubuntu5.2 (affected · dpkg)23.13.9-8ubuntu6 to < 23.13.9-8ubuntu7 (affected · dpkg)Default: unaffected | canonical · cna |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
2- Launchpad Bug #2157985 https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985
- Ubuntu CVE Tracker https://ubuntu.com/security/CVE-2026-61898
Provider assertions
2canonical · cna
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6432c4b6c9e7c775cfb4b009da8f8fece27373bb9bc1f943fa04682401de6f46
- Ingested
- 23 Sep 2026, 09:24:40 UTC
- Source record
- Official CVE record