{"schemaVersion":4,"id":"CVE-2026-61898","aliases":["UBUNTU-CVE-2026-61898"],"status":"published","duplicateOf":null,"title":"accountsservice: shell injection via attacker-controlled ~/.pam_environment in Ubuntu language helper scripts","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.","dates":{"published":"2026-08-20T14:32:59.924Z","modified":"2026-08-26T19:50:34.552Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0013,"percentile":0.02831,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.058,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00188},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0013,"percentile":0.02831}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00188,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0013,"percentile":0.02831}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"canonical","product":"accountsservice","name":"accountsservice","label":"accountsservice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"22.07.5-2ubuntu1","startInclusive":true,"end":"22.07.5-2ubuntu1.6","endInclusive":false}},{"text":"≥ 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"23.13.9-2ubuntu6","startInclusive":true,"end":"23.13.9-2ubuntu6.1","endInclusive":false}},{"text":"≥ 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"23.13.9-8ubuntu5","startInclusive":true,"end":"23.13.9-8ubuntu5.2","endInclusive":false}},{"text":"≥ 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"23.13.9-8ubuntu6","startInclusive":true,"end":"23.13.9-8ubuntu7","endInclusive":false}}],"versionsText":"≥ 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6 | ≥ 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1 | ≥ 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2 | ≥ 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7","eol":null,"hubHref":"/vendor/canonical/accountsservice"},{"vendor":"ubuntu","product":"accountsservice","name":"accountsservice","label":"accountsservice","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/accountsservice","purlType":"deb","versions":[{"text":"< 0.6.35-0ubuntu7.3+esm4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.6.35-0ubuntu7.3+esm4","endInclusive":false}},{"text":"< 0.6.40-2ubuntu11.6+esm2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.6.40-2ubuntu11.6+esm2","endInclusive":false}},{"text":"< 0.6.45-1ubuntu1.3+esm2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.6.45-1ubuntu1.3+esm2","endInclusive":false}},{"text":"< 0.6.55-0ubuntu12~20.04.7+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.6.55-0ubuntu12~20.04.7+esm1","endInclusive":false}},{"text":"< 22.07.5-2ubuntu1.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"22.07.5-2ubuntu1.6","endInclusive":false}},{"text":"< 23.13.9-2ubuntu6.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"23.13.9-2ubuntu6.1","endInclusive":false}},{"text":"< 23.13.9-8ubuntu5.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"23.13.9-8ubuntu5.2","endInclusive":false}}],"versionsText":"< 0.6.35-0ubuntu7.3+esm4 | < 0.6.40-2ubuntu11.6+esm2 | < 0.6.45-1ubuntu1.3+esm2 | < 0.6.55-0ubuntu12~20.04.7+esm1 | < 22.07.5-2ubuntu1.6 | < 23.13.9-2ubuntu6.1 | < 23.13.9-8ubuntu5.2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985","label":"bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/2157985","hostname":"bugs.launchpad.net","tags":["Issue Tracking"]},{"url":"https://ubuntu.com/security/CVE-2026-61898","label":"ubuntu.com/security/CVE-2026-61898","hostname":"ubuntu.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-61898","label":"www.cve.org/CVERecord?id=CVE-2026-61898","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8580-1","label":"ubuntu.com/security/notices/USN-8580-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8580-2","label":"ubuntu.com/security/notices/USN-8580-2","hostname":"ubuntu.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-8580-1","USN-8580-2"],"duplicates":[],"related":["USN-8580-1","USN-8580-2"]},"timeline":[{"kind":"published","date":"2026-08-20T14:32:59.924Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-26T19:50:34.552Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,78],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0013,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-08-26T19:50:34.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-08-26T19:50:34.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-08-26T19:50:34.552Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-08-26T19:43:44.504Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0013,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:11:22.844Z","stale":false,"partial":false}}