{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-2171 exists.","fix":"Apply the vendor's patch.","what":"CVE-2013-2171 is a medium-severity vulnerability in Freebsd Freebsd, published on 2 Jul 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-2013-2171 and fix it if it is affected.\n\nWhat it is: CVE-2013-2171 is a medium-severity vulnerability in Freebsd Freebsd, published on 2 Jul 2013. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-2171 exists.\n\nAffected product: Freebsd Freebsd. 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-2013-2171/ (Markdown: https://insights.sbomify.com/CVE-2013-2171/index.md)","id":"CVE-2013-2171","markdown":"https://insights.sbomify.com/CVE-2013-2171/index.md","name":"CVE-2013-2171","record":{"aliases":["DSA-2714-1","GHSA-gmfh-rp5h-w5mv"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"FreeBSD kernel","requires_auth":"low_privilege","summary":"Local attackers can bypass filesystem write permissions and gain privileges via crafted applications using mmap and ptrace in the FreeBSD kernel.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"freebsd","vendor":"freebsd"}],"cvss":{"score":6.9,"severity":"medium","source":"nvd","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"description":"The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEASE-p4 does not properly determine whether a task should have write access to a memory location, which allows local users to bypass filesystem write permissions and consequently gain privileges via a crafted application that leverages read permissions, and makes mmap and ptrace system calls.","ecosystems":[],"exploits":{"exploitdb":2,"first_seen":"2013-06-18","github_poc":1,"max_poc_stars":1,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-11-18T12:25:10Z","kind":"github_poc","ref":"https://github.com/0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation","stars":1,"title":"CVE-2013-2171"},{"date":"2013-06-18","kind":"metasploit","ref":"exploit/freebsd/local/mmap","stars":null,"title":"FreeBSD 9 Address Space Manipulation Privilege Escalation"},{"date":"2013-06-21","kind":"exploitdb","ref":"26368","stars":null,"title":"FreeBSD 9.0 \u003c 9.1 - 'mmap/ptrace' Local Privilege Escalation"},{"date":"2013-06-26","kind":"exploitdb","ref":"26454","stars":null,"title":"FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2013-2171","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"freebsd:freebsd","products":["freebsd:freebsd"],"type":"privilege_escalation","year":"2013"},"n_packages":0,"n_references":3,"next":{"headline":"Inefficient Algorithmic Complexity in Apache Santuario XML Security","id":"CVE-2013-2172"},"packages":[],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2013-2170"},"products":["n/a"],"published":"2013-07-02","related":[{"cvss_score":10,"headline":"Memory corruption in FreeBSD","id":"CVE-2018-17160","kev_date_added":null,"published":"2018-12-04"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2014-3954","kev_date_added":null,"published":"2014-10-27"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2006-4304","kev_date_added":null,"published":"2006-08-24"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2006-0226","kev_date_added":null,"published":"2006-01-19"},{"cvss_score":10,"headline":"Denial of service in n/a","id":"CVE-2004-0002","kev_date_added":null,"published":"2004-02-03"},{"cvss_score":10,"headline":"Security feature bypass in n/a","id":"CVE-2001-0969","kev_date_added":null,"published":"2002-03-09"},{"cvss_score":10,"headline":"Denial of service in n/a","id":"CVE-2001-0388","kev_date_added":null,"published":"2001-09-18"}],"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Local attackers can bypass filesystem write permissions and gain privileges via crafted applications using mmap and ptrace in the FreeBSD kernel.","url":"https://insights.sbomify.com/CVE-2013-2171/"}