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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-20 · Modified: 2026-08-26
- Aliases: UBUNTU-CVE-2026-61898
- Record: https://cvemate.com/vulnerability/CVE-2026-61898 · JSON: https://cvemate.com/vulnerability/CVE-2026-61898/json

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

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.13%, percentile 2.831%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- canonical accountsservice: ≥ 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
- ubuntu accountsservice (Ubuntu): \< 0.6.35-0ubuntu7.3+esm4 \| \< 0.6.40-2ubuntu11.6+esm2 \| \< 0.6.45-1ubuntu1.3+esm2 \| \< 0.6.55-0ubuntu12~20.04.7+esm1 \| \< 22.07.5-2ubuntu1.6 \| \< 23.13.9-2ubuntu6.1 \| \< 23.13.9-8ubuntu5.2

## References

- <https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985>
- <https://ubuntu.com/security/CVE-2026-61898>
- <https://www.cve.org/CVERecord?id=CVE-2026-61898>
- <https://ubuntu.com/security/notices/USN-8580-1>
- <https://ubuntu.com/security/notices/USN-8580-2>

---

Data as of 2026-12-05T03:01:03.028Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
