{"answers":{"affected":"5 open source packages ship an affected version, including github.com/ubuntu/authd. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-9313 in the wild and no public exploit code.","fix":"Upgrade github.com/ubuntu/authd to a fixed version for your release line: 0.0.0-20240930103526-63e527496b01 or 0.3.5.","what":"CVE-2024-9313 is a high-severity vulnerability in Canonical Ltd. Authd, published on 3 Oct 2024."},"fix_prompt":"Check this codebase for CVE-2024-9313 and fix it if it is affected.\n\nWhat it is: CVE-2024-9313 is a high-severity vulnerability in Canonical Ltd. Authd, published on 3 Oct 2024. \nExploitation: There is no known exploitation of CVE-2024-9313 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/ubuntu/authd (Go): affected all versions; fixed in 0.0.0-20240930103526-63e527496b01\n- github.com/ubuntu/authd (Go): affected all versions; fixed in 0.0.0-20240930103526-63e527496b01\n- github.com/ubuntu/authd (Go): affected all versions; fixed in 0.3.5\n- github.com/ubuntu/authd (Go): affected from 0.1.0; fixed in 0.3.5\n- github.com/ubuntu/authd (Go): affected from 0.1.0; fixed in 0.3.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9313/ (Markdown: https://insights.sbomify.com/CVE-2024-9313/index.md)","id":"CVE-2024-9313","markdown":"https://insights.sbomify.com/CVE-2024-9313/index.md","name":"CVE-2024-9313","record":{"aliases":["GHSA-x5q3-c8rm-w787","GO-2024-3181"],"analysis":null,"analysis_generated_by":null,"assigner":"canonical","cpe":[{"product":"authd","vendor":"canonical"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Authd PAM module before version 0.3.5 can allow broker-managed users to impersonate any other user managed by the same broker and perform any PAM operation with it, including authenticating as them.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PAM module may allow accessing with the credentials of another user","id":"CVE-2024-9313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":null,"year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Rank Math SEO – AI SEO Tools to Dominate SEO Rankings \u003c= 1.0.228 - Authenticated (Administrator+) PHP Object Injection","id":"CVE-2024-9314"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20240930103526-63e527496b01"],"introduced":["0"],"last_affected":[],"package":"github.com/ubuntu/authd","purl":null,"source":"GHSA-x5q3-c8rm-w787"},{"ecosystem":"Go","fixed":["0.0.0-20240930103526-63e527496b01"],"introduced":["0"],"last_affected":[],"package":"github.com/ubuntu/authd","purl":"pkg:golang/github.com/ubuntu/authd","source":"GHSA-x5q3-c8rm-w787"},{"ecosystem":"Go","fixed":["0.3.5"],"introduced":["0"],"last_affected":[],"package":"github.com/ubuntu/authd","purl":"pkg:golang/github.com/ubuntu/authd","source":"GO-2024-3181"},{"ecosystem":"Go","fixed":["0.3.5"],"introduced":["0.1.0"],"last_affected":[],"package":"github.com/ubuntu/authd","purl":null,"source":"GHSA-x5q3-c8rm-w787"},{"ecosystem":"Go","fixed":["0.3.5"],"introduced":["0.1.0"],"last_affected":[],"package":"github.com/ubuntu/authd","purl":"pkg:golang/github.com/ubuntu/authd","source":"GHSA-x5q3-c8rm-w787"}],"prev":{"headline":"Authd allows attacker-controlled usernames to yield controllable UIDs","id":"CVE-2024-9312"},"products":["Authd"],"published":"2024-10-03","related":[{"cvss_score":8.5,"headline":"Improper Permission Management in SSH Session Handling","id":"CVE-2025-5689","kev_date_added":null,"published":"2025-06-16"},{"cvss_score":7.5,"headline":"Authd allows attacker-controlled usernames to yield controllable UIDs","id":"CVE-2024-9312","kev_date_added":null,"published":"2024-10-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-22","vendors":["Canonical Ltd."]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-9313/"}