CVE-2026-61898 (GCVE-0-2026-61898)

Vulnerability from cvelistv5 – Published: 2026-08-20 14:32 – Updated: 2026-08-20 14:32
VLAI
Title
accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts
Summary
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 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
Impacted products
Vendor Product Version CPE status
Canonical accountsservice Affected: 22.07.5-2ubuntu1 , < 22.07.5-2ubuntu1.6 (dpkg)
Affected: 23.13.9-2ubuntu6 , < 23.13.9-2ubuntu6.1 (dpkg)
Affected: 23.13.9-8ubuntu5 , < 23.13.9-8ubuntu5.2 (dpkg)
Affected: 23.13.9-8ubuntu6 , < 23.13.9-8ubuntu7 (dpkg)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "packageName": "accountsservice",
          "platforms": [
            "Ubuntu 14.04 LTS",
            "Ubuntu 16.04 LTS",
            "Ubuntu 18.04 LTS",
            "Ubuntu 20.04 LTS",
            "Ubuntu 22.04 LTS",
            "Ubuntu 24.04 LTS",
            "Ubuntu 26.04 LTS",
            "Ubuntu 26.10"
          ],
          "product": "accountsservice",
          "vendor": "Canonical",
          "versions": [
            {
              "lessThan": "22.07.5-2ubuntu1.6",
              "status": "affected",
              "version": "22.07.5-2ubuntu1",
              "versionType": "dpkg"
            },
            {
              "lessThan": "23.13.9-2ubuntu6.1",
              "status": "affected",
              "version": "23.13.9-2ubuntu6",
              "versionType": "dpkg"
            },
            {
              "lessThan": "23.13.9-8ubuntu5.2",
              "status": "affected",
              "version": "23.13.9-8ubuntu5",
              "versionType": "dpkg"
            },
            {
              "lessThan": "23.13.9-8ubuntu7",
              "status": "affected",
              "version": "23.13.9-8ubuntu6",
              "versionType": "dpkg"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Deutsche Telekom Security GmbH Red Team"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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 \u0027e\u0027 flag and arbitrary shell commands that execute with the privileges of the AccountsService helper process (real UID 0) via the SetLanguage D-Bus method."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-78",
              "description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-20T14:32:59.924Z",
        "orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
        "shortName": "canonical"
      },
      "references": [
        {
          "name": "Launchpad Bug #2157985",
          "tags": [
            "issue-tracking"
          ],
          "url": "https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985"
        },
        {
          "name": "Ubuntu CVE Tracker",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://ubuntu.com/security/CVE-2026-61898"
        }
      ],
      "title": "accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
    "assignerShortName": "canonical",
    "cveId": "CVE-2026-61898",
    "datePublished": "2026-08-20T14:32:59.924Z",
    "dateReserved": "2026-07-11T18:43:51.251Z",
    "dateUpdated": "2026-08-20T14:32:59.924Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-61898",
      "date": "2026-08-24",
      "epss": "0.0013",
      "percentile": "0.02869"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-61898\",\"sourceIdentifier\":\"security@ubuntu.com\",\"published\":\"2026-08-20T15:17:38.913\",\"lastModified\":\"2026-08-20T15:17:38.913\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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 \u0027e\u0027 flag and arbitrary shell commands that execute with the privileges of the AccountsService helper process (real UID 0) via the SetLanguage D-Bus method.\"}],\"affected\":[{\"source\":\"security@ubuntu.com\",\"affectedData\":[{\"vendor\":\"Canonical\",\"product\":\"accountsservice\",\"defaultStatus\":\"unaffected\",\"packageName\":\"accountsservice\",\"platforms\":[\"Ubuntu 14.04 LTS\",\"Ubuntu 16.04 LTS\",\"Ubuntu 18.04 LTS\",\"Ubuntu 20.04 LTS\",\"Ubuntu 22.04 LTS\",\"Ubuntu 24.04 LTS\",\"Ubuntu 26.04 LTS\",\"Ubuntu 26.10\"],\"versions\":[{\"version\":\"22.07.5-2ubuntu1\",\"lessThan\":\"22.07.5-2ubuntu1.6\",\"versionType\":\"dpkg\",\"status\":\"affected\"},{\"version\":\"23.13.9-2ubuntu6\",\"lessThan\":\"23.13.9-2ubuntu6.1\",\"versionType\":\"dpkg\",\"status\":\"affected\"},{\"version\":\"23.13.9-8ubuntu5\",\"lessThan\":\"23.13.9-8ubuntu5.2\",\"versionType\":\"dpkg\",\"status\":\"affected\"},{\"version\":\"23.13.9-8ubuntu6\",\"lessThan\":\"23.13.9-8ubuntu7\",\"versionType\":\"dpkg\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security@ubuntu.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"security@ubuntu.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-78\"}]}],\"references\":[{\"url\":\"https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985\",\"source\":\"security@ubuntu.com\"},{\"url\":\"https://ubuntu.com/security/CVE-2026-61898\",\"source\":\"security@ubuntu.com\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-08-24T10:42:48+00:00",
      "cve": "CVE-2026-61898",
      "id": "CVE-2026-61898",
      "initial_release_date": "2026-08-20T14:32:59.924000+00:00",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "accountsservice: accountsservice: Arbitrary code execution via shell injection",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-61898.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…