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.
Published: 2026-08-20
Score: 7.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a shell injection flaw in Ubuntu’s language helper scripts (save-to-pam-env, update-langlist), which are part of the accountsservice package. The scripts treat the user‑controlled LANGUAGE entry in ~/.pam_environment as trusted input and interpolate it unescaped into a GNU sed replacement expression. An attacker can craft a value that injects a sed 'e' flag and arbitrary shell commands. When the SetLanguage D‑Bus method is invoked, the AccountsService helper process runs with real UID 0, executing the injected code with root privileges. This amounts to a classic command‑injection scenario that yields full system compromise. The weakness corresponds to CWE‑78: Improper Neutralization of Input During Command Execution.

Affected Systems

Canonical accountsservice on Ubuntu is affected when the installed version is earlier than 23.13.9-8ubuntu7. The vulnerability exists in the version shipped before that release; later releases include the fix.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity of the flaw. The EPSS score is not available and the issue is not listed in CISA’s KEV catalog, so the known exploitation probability is uncertain. However, the vulnerability can be triggered by a legitimate SetLanguage call, meaning that a local user or user with ability to modify ~/.pam_environment can potentially exploit the flaw. The lack of a publicly known exploit suggests that the risk is primarily theoretical until a suitable exploit is discovered, but the privileged nature of the vulnerability makes it particularly dangerous for users running the affected package.

Generated by OpenCVE AI on August 20, 2026 at 21:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install Canonical accountsservice package version 23.13.9-8ubuntu7 or later via apt update && apt install accountsservice
  • If a system cannot be immediately updated, consider removing or sanitizing the LANGUAGE entry in the user’s ~/.pam_environment to prevent unchecked sed input
  • Review any custom language scripts and enforce strict input validation before including them in environment files

Generated by OpenCVE AI on August 20, 2026 at 21:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8580-1 AccountsService vulnerabilities
Ubuntu USN Ubuntu USN USN-8580-2 AccountsService vulnerabilities
History

Thu, 20 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Canonical
Canonical accountsservice
Vendors & Products Canonical
Canonical accountsservice

Thu, 20 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Canonical Accountsservice
cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-08-20T14:32:59.924Z

Reserved: 2026-07-11T18:43:51.251Z

Link: CVE-2026-61898

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T15:17:38.913

Modified: 2026-08-20T15:17:38.913

Link: CVE-2026-61898

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T21:15:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')