Refine your search

2 vulnerabilities found for accountsservice by Canonical

CVE-2026-61898 (GCVE-0-2026-61898)
Vulnerability from cvelistv5
Published
2026-08-20 14:32
Modified
2026-08-26 19:50
CWE
  • CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
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.
Impacted products
Vendor Product Version
Canonical accountsservice Version: 22.07.5-2ubuntu1
Version: 23.13.9-2ubuntu6
Version: 23.13.9-8ubuntu5
Version: 23.13.9-8ubuntu6
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-61898",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-26T19:43:44.504304Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-08-26T19:50:34.552Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "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-26T19:50:34.552Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}

CVE-2026-61897 (GCVE-0-2026-61897)
Vulnerability from cvelistv5
Published
2026-08-20 14:32
Modified
2026-08-26 19:50
CWE
  • CWE-273 - Improper Check for Dropped Privileges
Summary
An Ubuntu-specific patch to AccountsService before 23.13.9-8ubuntu7 only partially drops privileges before launching language helper scripts. It changes the effective UID/GID to the target user but leaves the real UID as 0 (root). A shell spawned by a helper script inherits ruid=0 and may reset its effective UID to root, enabling local privilege escalation.
Impacted products
Vendor Product Version
Canonical accountsservice Version: 22.07.5-2ubuntu1
Version: 23.13.9-2ubuntu6
Version: 23.13.9-8ubuntu5
Version: 23.13.9-8ubuntu6
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-61897",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-26T19:43:37.600246Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-08-26T19:50:49.398Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "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": "An Ubuntu-specific patch to AccountsService before 23.13.9-8ubuntu7 only partially drops privileges before launching language helper scripts. It changes the effective UID/GID to the target user but leaves the real UID as 0 (root). A shell spawned by a helper script inherits ruid=0 and may reset its effective UID to root, enabling local privilege escalation."
        }
      ],
      "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-273",
              "description": "CWE-273: Improper Check for Dropped Privileges",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-20T14:32:53.827Z",
        "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-61897"
        }
      ],
      "title": "accountsservice: incomplete privilege drop when running Ubuntu-specific language helper scripts"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
    "assignerShortName": "canonical",
    "cveId": "CVE-2026-61897",
    "datePublished": "2026-08-20T14:32:53.827Z",
    "dateReserved": "2026-07-11T18:43:51.251Z",
    "dateUpdated": "2026-08-26T19:50:49.398Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}