{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-3899 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-3899 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 3 Jun 2024. 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-2021-3899 and fix it if it is affected.\n\nWhat it is: CVE-2021-3899 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 3 Jun 2024. 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-2021-3899 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-2021-3899/ (Markdown: https://insights.sbomify.com/CVE-2021-3899/index.md)","id":"CVE-2021-3899","markdown":"https://insights.sbomify.com/CVE-2021-3899/index.md","name":"CVE-2021-3899","record":{"aliases":["GHSA-m676-gr96-hhhh","UBUNTU-CVE-2021-3899"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Ubuntu Apport","requires_auth":"low_privilege","summary":"A race condition in Apport allows local attackers to execute arbitrary code as root under specific configurations.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"apport","vendor":"canonical"},{"product":"ubuntu_linux","vendor":"canonical"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arbitrary code as root.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2022-05-21","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-05-21T01:52:34Z","kind":"github_poc","ref":"https://github.com/liumuqing/CVE-2021-3899_PoC","stars":3,"title":"race condition in apport lead to Local Privilege Escalation on Ubuntu"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Race condition in Apport","id":"CVE-2021-3899","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux"],"type":"race_condition","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Cross-Site Request Forgery (CSRF) in firefly-iii/firefly-iii","id":"CVE-2021-3900"},"packages":[],"prev":{"headline":"Weak cryptography in Device Help Android App","id":"CVE-2021-3898"},"products":["Apport"],"published":"2024-06-03","related":[{"cvss_score":8.8,"headline":"apport improperly parses /proc/pid/status","id":"CVE-2021-25682","kev_date_added":null,"published":"2021-06-11"},{"cvss_score":8.8,"headline":"apport improperly parses /proc/pid/stat","id":"CVE-2021-25683","kev_date_added":null,"published":"2021-06-11"},{"cvss_score":8.8,"headline":"apport can be stalled by reading a FIFO","id":"CVE-2021-25684","kev_date_added":null,"published":"2021-06-11"},{"cvss_score":7.8,"headline":"Other in Apport","id":"CVE-2022-1242","kev_date_added":null,"published":"2024-06-03"},{"cvss_score":7.7,"headline":"local privilege escalation in apport-cli","id":"CVE-2023-1326","kev_date_added":null,"published":"2023-04-13"},{"cvss_score":7.5,"headline":"Denial of service in Apport","id":"CVE-2022-28653","kev_date_added":null,"published":"2025-01-31"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-19","vendors":["Canonical Ltd."]},"summary":"A race condition in Apport allows local attackers to execute arbitrary code as root under specific configurations.","url":"https://insights.sbomify.com/CVE-2021-3899/"}