{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2012-0787 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2012-0787 is a low-severity vulnerability in Redhat Enterprise Linux, published on 23 Nov 2013. 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-2012-0787 and fix it if it is affected.\n\nWhat it is: CVE-2012-0787 is a low-severity vulnerability in Redhat Enterprise Linux, published on 23 Nov 2013. 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-2012-0787 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise 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-2012-0787/ (Markdown: https://insights.sbomify.com/CVE-2012-0787/index.md)","id":"CVE-2012-0787","markdown":"https://insights.sbomify.com/CVE-2012-0787/index.md","name":"CVE-2012-0787","record":{"aliases":["DEBIAN-CVE-2012-0787","GHSA-8qr9-h3xv-vhx6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Augeas configuration library","requires_auth":"low_privilege","summary":"Local attackers can overwrite arbitrary files and read sensitive data via race conditions in Augeas backup operations when specific save options are enabled.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"augeas","vendor":"augeas"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":3.7,"severity":"low","source":"nvd","vector":"AV:L/AC:H/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"The clone_file function in transfer.c in Augeas before 1.0.0, when copy_if_rename_fails is set and EXDEV or EBUSY is returned by the rename function, allows local users to overwrite arbitrary files and obtain sensitive information via a bind mount on the (1) .augsave or (2) destination file when using the backup save option, or (3) .augnew file when using the newfile save option.","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":"Race condition in n/a","id":"CVE-2012-0787","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux"],"type":"race_condition","year":"2012"},"n_packages":0,"n_references":5,"next":{"headline":"Denial of service in n/a","id":"CVE-2012-0788"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2012-0786"},"products":["n/a"],"published":"2013-11-23","related":[{"cvss_score":9.8,"headline":"Memory corruption in augeas","id":"CVE-2017-7555","kev_date_added":null,"published":"2017-08-17"},{"cvss_score":4.8,"headline":"Hercules Augeas fa.c re_case_expand null pointer dereference","id":"CVE-2025-2588","kev_date_added":null,"published":"2025-03-21"},{"cvss_score":4.6,"headline":"Misconfiguration in n/a","id":"CVE-2013-6412","kev_date_added":null,"published":"2014-01-23"},{"cvss_score":3.3,"headline":"Path traversal in n/a","id":"CVE-2012-0786","kev_date_added":null,"published":"2013-11-23"},{"cvss_score":3.3,"headline":"Path traversal in n/a","id":"CVE-2012-6607","kev_date_added":null,"published":"2013-11-23"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Local attackers can overwrite arbitrary files and read sensitive data via race conditions in Augeas backup operations when specific save options are enabled.","url":"https://insights.sbomify.com/CVE-2012-0787/"}