{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-8831 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2020-8831 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 22 Apr 2020. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-8831 and fix it if it is affected.\n\nWhat it is: CVE-2020-8831 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 22 Apr 2020. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-8831 in the wild and no public exploit code.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2020-8831/ (Markdown: https://insights.sbomify.com/CVE-2020-8831/index.md)","id":"CVE-2020-8831","markdown":"https://insights.sbomify.com/CVE-2020-8831/index.md","name":"CVE-2020-8831","record":{"aliases":["GHSA-33w2-prhc-2q89","UBUNTU-CVE-2020-8831"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ubuntu Apport","requires_auth":"low_privilege","summary":"An attacker can exploit a symlink vulnerability in Apport's lock file creation to escalate privileges on Ubuntu systems.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"apport","vendor":"apport_project"},{"product":"ubuntu_linux","vendor":"canonical"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"description":"Apport creates a world writable lock file with root ownership in the world writable /var/lock/apport directory. If the apport/ directory does not exist (this is not uncommon as /var/lock is a tmpfs), it will create the directory, otherwise it will simply continue execution using the existing directory. This allows for a symlink attack if an attacker were to create a symlink at /var/lock/apport, changing apport's lock file location. This file could then be used to escalate privileges, for example. Fixed in versions 2.20.1-0ubuntu2.23, 2.20.9-0ubuntu7.14, 2.20.11-0ubuntu8.8 and 2.20.11-0ubuntu22.","ecosystems":[],"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":"World writable root owned lock file created in user controllable location","id":"CVE-2020-8831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux"],"type":"path_traversal","year":"2020"},"n_packages":0,"n_references":3,"next":{"headline":"Ubuntu 18.04 Linux kernel i915 incomplete fix for CVE-2019-14615","id":"CVE-2020-8832"},"packages":[],"prev":{"headline":"Server-side request forgery in n/a","id":"CVE-2020-8830"},"products":["Apport"],"published":"2020-04-22","related":[{"cvss_score":7.8,"headline":"Denial of service in Apport","id":"CVE-2022-28657","kev_date_added":null,"published":"2024-06-04"},{"cvss_score":7.8,"headline":"Apport treats the container PID as the global PID when /proc/\u003cglobal_pid\u003e/ is missing","id":"CVE-2018-6552","kev_date_added":null,"published":"2018-05-31"},{"cvss_score":7.8,"headline":"Privilege escalation in Apport","id":"CVE-2017-14177","kev_date_added":null,"published":"2018-02-02"},{"cvss_score":7.8,"headline":"Privilege escalation in Apport","id":"CVE-2017-14179","kev_date_added":null,"published":"2018-02-02"},{"cvss_score":7.8,"headline":"Privilege escalation in Apport","id":"CVE-2017-14180","kev_date_added":null,"published":"2018-02-02"},{"cvss_score":7.8,"headline":"Path traversal in n/a","id":"CVE-2017-10708","kev_date_added":null,"published":"2017-07-18"},{"cvss_score":7.8,"headline":"Code injection in n/a","id":"CVE-2016-9949","kev_date_added":null,"published":"2016-12-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Canonical"]},"summary":"An attacker can exploit a symlink vulnerability in Apport's lock file creation to escalate privileges on Ubuntu systems.","url":"https://insights.sbomify.com/CVE-2020-8831/"}