{"schemaVersion":4,"id":"CVE-2026-123037","aliases":["DEBIAN-CVE-2026-123037","UBUNTU-CVE-2026-123037"],"status":"published","duplicateOf":null,"title":"Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)","description":"A flaw was found in the ansible-core user module. When generate_ssh_key is enabled, User.ssh_key_gen() guards the key files against symlinks but checks the ~/.ssh directory only with os.path.exists(). An unprivileged user on a managed node who replaces their ~/.ssh with a symlink to an existing root-writable directory causes the privileged module to write the generated key pair through the symlink and then chown both files to that user. Because such files can be dropped into directories processed by schedulers (e.g. /etc/cron.daily) or dynamic MOTD (/etc/update-motd.d), the user can escalate to root on the managed node. This is an incomplete fix of CVE-2024-9902.","dates":{"published":"2026-11-06T05:38:54.180Z","modified":"2026-11-24T10:39:26.968Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":2.1,"impact":9.8,"computed":true}]},"epss":{"probability":0.00141,"percentile":0.03585,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-06T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00141,"percentile":0.03585}],"last30":[{"date":"2026-11-06T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00111,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00148,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00141,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00141,"percentile":0.03585}]},"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-59","name":"Improper Link Resolution Before File Access","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"debian","product":"ansible-core","name":"ansible-core","label":"ansible-core","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ansible-core","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ansible","name":"ansible","label":"ansible","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ansible","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ansible-core","name":"ansible-core","label":"ansible-core","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ansible-core","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-123037","label":"access.redhat.com/security/cve/CVE-2026-123037","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2567189","label":"bugzilla.redhat.com/show_bug.cgi?id=2567189","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-123037","label":"security-tracker.debian.org/tracker/CVE-2026-123037","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-123037","label":"ubuntu.com/security/CVE-2026-123037","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-123037","label":"www.cve.org/CVERecord?id=CVE-2026-123037","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-06T05:38:54.180Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-24T10:39:26.968Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,67],"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.00141,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-24T10:39:26.968Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-24T10:39:26.968Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-24T10:39:26.968Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-24T10:39:26.968Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-06T17:36:34.746Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00141,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T05:00:25.663Z","stale":false,"partial":false}}