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

Goal: 1000 CNY · Raised: 1336 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.

在 Ubuntu 中,随 accountsservice(版本低于 23.13.9-8ubuntu7)一起发布的特定于 Ubuntu 的语言辅助脚本(save-to-pam-env、update-langlist)将 ~/.pam_environment 文件中由用户控制的 LANGUAGE 条目视为可信输入。该值未加转义地被插入到 GNU sed 的替换表达式中,攻击者可通过注入 sed 的 'e' 标志以及任意 shell 命令,从而以 AccountsService 辅助进程的权限(真实用户 ID 为 0)执

CVSS 7.8 · High EPSS 0.13% · P3

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

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