Skip to main content

accountsservice CVE-2026-61898

| EUVDEUVD-2026-63380 HIGH
OS Command Injection (CWE-78)
2026-08-20 canonical GHSA-vqj6-342m-9cvg
7.8
CVSS 3.1 · Vendor: canonical
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Write malicious LANGUAGE payload to ~/.pam_environment
  2. Delivery
    Invoke SetLanguage via D-Bus (e.g., via GNOME Settings or gdbus)
  3. Exploit
    Ubuntu helper script reads LANGUAGE value without sanitization
  4. Execution
    Value interpolated into GNU sed replacement expression
  5. Persist
    sed 'e' flag triggers shell command execution
  6. Impact
    Arbitrary commands execute as real UID 0

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a local user account with write access to their own ~/.pam_environment file (standard on Ubuntu) and the ability to invoke the SetLanguage method on the org.freedesktop.Accounts D-Bus interface (permitted for any authenticated local user session by default on Ubuntu desktop installations). The LANGUAGE entry must be writable before the SetLanguage call is made - the attacker controls timing of both steps. The vulnerability is present only on Ubuntu systems using the Ubuntu-specific accountsservice packaging prior to 23.13.9-8ubuntu7; non-Ubuntu Linux distributions do not ship the affected helper scripts and are not vulnerable. Exploitation is bounded by: local access requirement (no remote vector), necessity of an existing low-privilege user account, and Ubuntu-specific deployment - headless Ubuntu server deployments without D-Bus session access may have a reduced or absent attack surface depending on D-Bus daemon configuration.

Impact

The CVSS 7.8 score (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) is well-calibrated to this vulnerability. The local attack vector (AV:L) correctly limits exposure to users with existing shell access, but the low complexity (AC:L) and low privilege requirement (PR:L) mean that any standard Ubuntu user account is sufficient - no special configuration or elevated starting position is needed beyond a default Ubuntu install with accountsservice running (which covers virtually all Ubuntu desktop deployments). The direct outcome is a root shell, delivering the maximum C:H/I:H/A:H impact triad. EPSS data was not provided in the available intelligence; in its absence, exploitation probability cannot be quantified numerically, but the attack's technical simplicity and detailed public description suggest the barrier to exploitation is low. No CISA KEV listing exists, and no public POC has been identified at time of analysis - these are meaningful signals that exploitation has not yet been observed at scale, but they do not materially reduce urgency given the attack complexity. There are no conflicting signals between the CVSS vector and the textual description: both consistently indicate local access, low privilege, and a direct path to UID 0.

Exploit ScenarioDerived

A local user crafts a LANGUAGE value in their ~/.pam_environment file that embeds a GNU sed 'e' flag payload, such as a replacement expression that terminates the expected substitution and appends a shell command (e.g., a reverse shell or SUID binary installation). The attacker then triggers the SetLanguage D-Bus method - which can be done via GNOME Settings by changing the display language, or programmatically via gdbus or a simple D-Bus client. The Ubuntu-specific helper script reads the LANGUAGE entry, interpolates it unsanitized into a sed expression, and GNU sed executes the injected command with the privileges of the helper process running as real UID 0, granting the attacker a root shell. No public POC has been identified, but the mechanism is technically straightforward and the attack requires no race conditions or memory corruption.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

Privilege escalation in Ubuntu's accountsservice package allows a local low-privileged user to execute arbitrary shell commands as root (real UID 0) by injecting a GNU sed 'e' flag payload into their ~/.pam_environment LANGUAGE entry, which is then processed unsanitized by Ubuntu-specific helper scripts (save-to-pam-env, update-langlist) when the SetLanguage D-Bus method is invoked. All Ubuntu accountsservice packages before version 23.13.9-8ubuntu7 are affected; this is a Ubuntu-specific packaging defect, not an upstream accountsservice issue. No public exploit code or CISA KEV listing has been identified at time of analysis, though the attack path is well-described and technically straightforward.

RemediationAI

Upgrade accountsservice to version 23.13.9-8ubuntu7 or later using Ubuntu's package manager (sudo apt-get update && sudo apt-get upgrade accountsservice). This is a vendor-released patch confirmed by the Ubuntu security advisory at https://ubuntu.com/security/CVE-2026-61898. For systems where immediate patching is not possible, restricting D-Bus policy access to the org.freedesktop.Accounts interface for unprivileged users via a custom D-Bus policy file can reduce the attack surface, but this will break legitimate desktop functionality including GNOME Settings language and locale configuration - evaluate the operational trade-off before applying. Restricting write access to ~/.pam_environment is not a practical standalone mitigation since it is a standard user-owned configuration file. The patch is the definitive remediation; workarounds should be treated as temporary bridges only.

Affected VersionsENISA

accountsservice 23.13.9-8ubuntu5 <23.13.9-8ubuntu5.2
accountsservice 22.07.5-2ubuntu1 <22.07.5-2ubuntu1.6
accountsservice 23.13.9-8ubuntu6 <23.13.9-8ubuntu7
accountsservice 23.13.9-2ubuntu6 <23.13.9-2ubuntu6.1

Affected Packages

euvd accountsservice fix: 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

accountsservice is a D-Bus service (org.freedesktop.Accounts) that provides an interface for querying and modifying user account information, including locale and language settings. On Ubuntu, the package ships two additional helper scripts - save-to-pam-env and update-langlist - that are invoked with elevated privileges when the SetLanguage D-Bus method is called. These scripts read the LANGUAGE key from the user-writable file ~/.pam_environment and interpolate its value directly into a GNU sed substitution expression without sanitization. GNU sed's 'e' flag in a replacement string causes sed to execute the replacement as a shell command. By crafting a LANGUAGE value that introduces an 'e' flag (e.g., through embedded newlines or expression terminators followed by a malicious substitution), the attacker causes arbitrary OS commands to run inside the helper process, which operates with real UID 0. CPE cpe:2.3:a:canonical:accountsservice:*:*:*:*:*:*:*:* scopes this to Canonical's Ubuntu packaging only. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) accurately classifies the root cause: unsanitized user-controlled data flowing into a shell interpreter via an intermediate sed command.

Know when Accountsservice gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (canonical) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local vector because exploitation requires existing shell access to write ~/.pam_environment and invoke D-Bus; PR:L because any standard user account suffices; full CIA impact from achieving real UID 0 execution.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.8 HIGH

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 15:16 EUVD
CVE Published
Aug 20, 2026 - 14:32 cve.org
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Ubuntu systems running accountsservice prior to version 23.13.9-8ubuntu7 face a high-severity privilege escalation vulnerability that allows local users to gain root access through environment variable manipulation, potentially exposing all sensitive data and administrative functions on affected infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Block unprivileged access to D-Bus SetLanguage method through PolicyKit deny rules, (2) enforce filesystem permissions restricting .pam_environment modification (mode 0600 or equivalent), (3) implement mandatory access control policies (AppArmor/SELinux) to prevent sed execution from accountsservice helper scripts, (4) deploy auditd rules logging all SetLanguage D-Bus calls and pam_environment file access for incident detection.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
default component in Ubuntu desktop and many server deployments
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Not-Affected
SUSE Linux Enterprise Server 15 SP7 Not-Affected
SUSE Linux Enterprise Server 16.0 Not-Affected
SUSE Linux Enterprise Server 16.1 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy