{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2007-2438 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2007-2438 is a high-severity code injection vulnerability in n/a, published on 2 May 2007. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2007-2438 and fix it if it is affected.\n\nWhat it is: CVE-2007-2438 is a high-severity code injection vulnerability in n/a, published on 2 May 2007. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2007-2438 in the wild and no public exploit code.\n\nAffected product: n/a. 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-2007-2438/ (Markdown: https://insights.sbomify.com/CVE-2007-2438/index.md)","id":"CVE-2007-2438","markdown":"https://insights.sbomify.com/CVE-2007-2438/index.md","name":"CVE-2007-2438","record":{"aliases":["CVE-2007-2653","DEBIAN-CVE-2007-2438","GHSA-x2f5-352x-j9w7","RHSA-2007:0346"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Vim text editor","requires_auth":"none","summary":"User-assisted attackers can execute shell commands and write files via modelines due to dangerous functions allowed in the Vim sandbox.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"vim","vendor":"vim_development_group"}],"cvss":{"score":7.6,"severity":"high","source":"nvd","vector":"AV:N/AC:H/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[],"description":"The sandbox for vim allows dangerous functions such as (1) writefile, (2) feedkeys, and (3) system, which might allow user-assisted attackers to execute shell commands and write files via modelines.","ecosystems":["Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::server"],"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":"Code injection in n/a","id":"CVE-2007-2438","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2007"},"n_packages":12,"n_references":30,"next":{"headline":"Denial of service in n/a","id":"CVE-2007-2439"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim","purl":"pkg:rpm/redhat/vim","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-X11","purl":"pkg:rpm/redhat/vim-X11","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-common","purl":"pkg:rpm/redhat/vim-common","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-debuginfo","purl":"pkg:rpm/redhat/vim-debuginfo","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-enhanced","purl":"pkg:rpm/redhat/vim-enhanced","source":"RHSA-2007:0346"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["2:7.0.109-3.el5.3"],"introduced":["0"],"last_affected":[],"package":"vim-minimal","purl":"pkg:rpm/redhat/vim-minimal","source":"RHSA-2007:0346"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2007-2437"},"products":["n/a"],"published":"2007-05-02","related":[{"cvss_score":9.3,"headline":"Command injection in n/a","id":"CVE-2005-2368","kev_date_added":null,"published":"2005-07-26"},{"cvss_score":7.2,"headline":"Code injection in n/a","id":"CVE-2004-1138","kev_date_added":null,"published":"2004-12-22"},{"cvss_score":6.8,"headline":"Code injection in n/a","id":"CVE-2007-2953","kev_date_added":null,"published":"2007-07-31"},{"cvss_score":5.1,"headline":"Code injection in n/a","id":"CVE-2001-0408","kev_date_added":null,"published":"2001-09-18"},{"cvss_score":4.6,"headline":"Path traversal in n/a","id":"CVE-2005-0069","kev_date_added":null,"published":"2005-01-29"},{"cvss_score":4.6,"headline":"Code injection in n/a","id":"CVE-2002-1377","kev_date_added":null,"published":"2004-09-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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-07","vendors":["n/a"]},"summary":"User-assisted attackers can execute shell commands and write files via modelines due to dangerous functions allowed in the Vim sandbox.","url":"https://insights.sbomify.com/CVE-2007-2438/"}