High severity · published Aug 20, 2026
CVE-2026-61898
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
7.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 8% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AC
accountsservice · Canonical
22.07.5-2ubuntu1 before 22.07.5-2ubuntu1.6; 23.13.9-2ubuntu6 before 23.13.9-2ubuntu6.1; 23.13.9-8ubuntu5 before 23.13.9-8ubuntu5.2; 23.13.9-8ubuntu6 before 23.13.9-8ubuntu7 · source: vendor
Affected product
AC
accountsservice
Canonical
More from accountsservice
7.8
CVE-2026-61897
accountsservice: incomplete privilege drop when running Ubuntu-specific language helper scripts
7.8
CVE-2023-3297
In Ubuntu's accountsservice an unprivileged local attacker can trigger a use-after-free vulnerability in accountsservice by sending a D-Bus message to the accounts-daemon process
7.8
CVE-2021-3939
Ubuntu-specific modifications to accountsservice (in patch file debian/patches/0010-set-language.patch) caused the fallback_locale variable, pointing to static storage, to be…
5.5
CVE-2022-1804
accountsservice no longer drops permissions when writting .pam_environment
–
CVE-2011-4406
The Ubuntu AccountsService package before 0.6.14-1git1ubuntu1.1 does not properly drop privileges when changing language settings, which allows local users to modify arbitrary…