CVE-2026-61898

published 20 Aug 2026 · updated 26 Aug 2026

accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Canonical>=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-8ubuntu722.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-61898 severity on Zeptric[![CVE-2026-61898](https://zeptric.io/badge/cve/CVE-2026-61898.svg)](https://zeptric.io/cve/CVE-2026-61898)