Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Canonical accountsservice
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Canonical AccountsService是英国Canonical公司开源的一个提供用户账户信息查询与操作的系统服务。 Canonical AccountsService 23.13.9-8ubuntu7之前版本存在命令注入漏洞,该漏洞源于Ubuntu特定语言辅助脚本将用户控制的LANGUAGE条目视为可信输入,未转义插入GNU sed替换表达式,可能导致攻击者注入sed 'e'标志和任意shell命令,以AccountsService辅助进程权限(真实UID 0)通过SetLanguage D-

CVSS 7.8 · High EPSS 0.19% · P8

Affected Version Matrix 4

VendorProduct Version RangeStatus
Canonical accountsservice 22.07.5-2ubuntu1< 22.07.5-2ubuntu1.6 affected
23.13.9-2ubuntu6< 23.13.9-2ubuntu6.1 affected
23.13.9-8ubuntu5< 23.13.9-8ubuntu5.2 affected
23.13.9-8ubuntu6< 23.13.9-8ubuntu7 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-61898

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Canonical AccountsService 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Canonical AccountsService是英国Canonical公司开源的一个提供用户账户信息查询与操作的系统服务。 Canonical AccountsService 23.13.9-8ubuntu7之前版本存在命令注入漏洞,该漏洞源于Ubuntu特定语言辅助脚本将用户控制的LANGUAGE条目视为可信输入,未转义插入GNU sed替换表达式,可能导致攻击者注入sed 'e'标志和任意shell命令,以AccountsService辅助进程权限(真实UID 0)通过SetLanguage D-
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Canonical accountsservice 22.07.5-2ubuntu1 ~ 22.07.5-2ubuntu1.6 -

II. Public POCs for CVE-2026-61898

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-61898

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-61898 (2)

Same Patch Batch · Canonical · 2026-08-20 · 3 CVEs total

CVE-2026-61897 7.8 HIGH accountsservice: incomplete privilege drop when running Ubuntu-specific language helper sc
CVE-2026-77113 6.7 MEDIUM Path Traversal Vulnerability in apport-unpack

IV. Related Vulnerabilities

V. Comments for CVE-2026-61898

No comments yet


Leave a comment