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

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-20T14:32:59.924Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- accountsservice: from 22.07.5-2ubuntu1 before 22.07.5-2ubuntu1.6; from 23.13.9-2ubuntu6 before 23.13.9-2ubuntu6.1; from 23.13.9-8ubuntu5 before 23.13.9-8ubuntu5.2; from 23.13.9-8ubuntu6 before 23.13.9-8ubuntu7

## References

- <https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985> (issue-tracking)
- <https://ubuntu.com/security/CVE-2026-61898> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-61898](https://www.cve.org/CVERecord?id=CVE-2026-61898), CVE Terms of Use, modified 2026-08-26
- NVD: [CVE-2026-61898](https://nvd.nist.gov/vuln/detail/CVE-2026-61898), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-61898 · Whole record: https://cve.day/CVE-2026-61898.json · Rebuilt by cve.day 2026-11-25T22:59:34.640Z
