CVEfocus › CVE database › CVE-2026-61898

CVE-2026-61898accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu…

CVSS 7.8 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-08-20Updated 2026-08-26Assigner: canonical

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.

CWE-78

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04accountsserviceFixed23.13.9-8ubuntu5.2UBUNTU-CVE-2026-61898
Ubuntu 24.04accountsserviceFixed23.13.9-2ubuntu6.1UBUNTU-CVE-2026-61898
Ubuntu 22.04accountsserviceFixed22.07.5-2ubuntu1.6UBUNTU-CVE-2026-61898
Ubuntu 20.04accountsserviceFix pending0.6.55-0ubuntu12~20.04.7+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-61898
Ubuntu 18.04accountsserviceFix pending0.6.45-1ubuntu1.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-61898
Ubuntu 16.04accountsserviceFix pending0.6.40-2ubuntu11.6+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-61898
Ubuntu 14.04accountsserviceFix pending0.6.35-0ubuntu7.3+esm4 (Ubuntu Pro)UBUNTU-CVE-2026-61898
Red Hat Enterprise Linux 10accountsserviceNot affected
Red Hat Enterprise Linux 10accountsservice-develNot affected
Red Hat Enterprise Linux 10accountsservice-libsNot affected
Red Hat Enterprise Linux 9accountsserviceNot affected
Red Hat Enterprise Linux 9accountsservice-develNot affected
Red Hat Enterprise Linux 9accountsservice-libsNot affected
Red Hat Enterprise Linux 8accountsserviceNot affected
Red Hat Enterprise Linux 8accountsservice-develNot affected
Red Hat Enterprise Linux 8accountsservice-libsNot affected
Red Hat Enterprise Linux 7accountsserviceNot affected
Red Hat Enterprise Linux 7accountsservice-develNot affected
Red Hat Enterprise Linux 7accountsservice-libsNot affected

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.