{"id":"CVE-2026-61898","aliases":["CVE-2026-61898"],"related":[],"kind":"vulnerability","state":"published","title":"accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Los scripts auxiliares de idioma específicos de Ubuntu (save-to-pam-env, update-langlist) incluidos con accountsservice antes de la versión 23.13.9-8ubuntu7 tratan la entrada LANGUAGE controlada por el usuario en ~/.pam_environment como entrada de confianza. El valor se interpola sin escapar en una expresión de reemplazo de GNU sed, permitiendo a un atacante inyectar una bandera 'e' de sed y comandos de shell arbitrarios que se ejecutan con los privilegios del proceso auxiliar de AccountsService (UID real 0) a través del método D-Bus SetLanguage.","source":"nvd"}],"published":"2026-08-20T14:32:59.924Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"dpkg","introduced":"22.07.5-2ubuntu1","fixed":"22.07.5-2ubuntu1.6","status":"affected"},{"type":"dpkg","introduced":"23.13.9-2ubuntu6","fixed":"23.13.9-2ubuntu6.1","status":"affected"},{"type":"dpkg","introduced":"23.13.9-8ubuntu5","fixed":"23.13.9-8ubuntu5.2","status":"affected"},{"type":"dpkg","introduced":"23.13.9-8ubuntu6","fixed":"23.13.9-8ubuntu7","status":"affected"}],"vendor":"Canonical","product":"accountsservice","package":"accountsservice","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"],"source":"cvelist"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://ubuntu.com/security/CVE-2026-61898","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["Deutsche Telekom Security GmbH Red Team"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-26T19:43:44.504Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61898","url":"https://www.cve.org/CVERecord?id=CVE-2026-61898","licence":"CVE Terms of Use","modified":"2026-08-26T19:50:34.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61898","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61898","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.640Z","epss":{"score":0.0013,"percentile":0.02867,"date":"2026-12-01T12:00:22.000Z"}}