Ubuntu accountsservice Injects User-Controlled LANGUAGE Value Unescaped Into a sed Expression, Enabling Arbitrary Shell Commands to Run With Root Privileges
Last refreshed2026-11-19
Status: UPDATED
| Advisory ID: CVE-2026-61898
Key Details
CVE
CVE-2026-61898
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated
2026-10-18
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
canonical accountsservice
Classified as
CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'))
Exploitation prediction (EPSS)
0.19% probability of exploitation in the next 30 days (9% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
canonical
accountsservice
Subsystems
General OT
Sectors
Multiple
What to Know
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. (NVD)
What to Do
Monitor canonical's web page for any future patch releases.