{"id":"CVE-2026-61898","published":"2026-08-20T14:32:59Z","modified":"2026-08-26T19:50:34Z","title":"accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts","vendor":"Canonical","product":"accountsservice","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00188,"percentile":0.08605,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985","tags":["issue-tracking"]},{"url":"https://ubuntu.com/security/CVE-2026-61898","tags":["vendor-advisory"]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":1.72},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical","product":"accountsservice","versions":[">= 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"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-26T19:43:44.504304Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63380","exploited":false,"provenance":"source"}}