{
  "id": "CVE-2026-61898",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-61898",
  "published_at": "2026-08-20T14:32:59.924Z",
  "title": "accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts",
  "vendor": "Canonical",
  "product": "accountsservice",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Canonical",
        "product": "accountsservice",
        "ranges": [
          "\u003e= 22.07.5-2ubuntu1, \u003c 22.07.5-2ubuntu1.6",
          "\u003e= 23.13.9-2ubuntu6, \u003c 23.13.9-2ubuntu6.1",
          "\u003e= 23.13.9-8ubuntu5, \u003c 23.13.9-8ubuntu5.2",
          "\u003e= 23.13.9-8ubuntu6, \u003c 23.13.9-8ubuntu7"
        ],
        "fixed_in": [
          "22.07.5-2ubuntu1.6",
          "23.13.9-2ubuntu6.1",
          "23.13.9-8ubuntu5.2",
          "23.13.9-8ubuntu7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade accountsservice to 22.07.5-2ubuntu1.6 or 23.13.9-2ubuntu6.1 or 23.13.9-8ubuntu5.2 or 23.13.9-8ubuntu7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://ubuntu.com/security/CVE-2026-61898"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
