{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2007-5398 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2007-5398 is a critical memory corruption vulnerability in Samba Samba, published on 16 Nov 2007. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2007-5398 and fix it if it is affected.\n\nWhat it is: CVE-2007-5398 is a critical memory corruption vulnerability in Samba Samba, published on 16 Nov 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2007-5398 in the wild and no public exploit code.\n\nAffected product: Samba Samba. 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-5398/ (Markdown: https://insights.sbomify.com/CVE-2007-5398/index.md)","id":"CVE-2007-5398","markdown":"https://insights.sbomify.com/CVE-2007-5398/index.md","name":"CVE-2007-5398","record":{"aliases":["DEBIAN-CVE-2007-5398","GHSA-2488-7mjj-wx6f","RHSA-2007:1034"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Samba WINS server","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on Samba servers configured as WINS servers via crafted NetBIOS packets.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"flexera","cpe":[{"product":"samba","vendor":"samba"}],"cvss":{"score":9.3,"severity":"critical","source":"nvd","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"Stack-based buffer overflow in the reply_netbios_packet function in nmbd/nmbd_packets.c in nmbd in Samba 3.0.0 through 3.0.26a, when operating as a WINS server, allows remote attackers to execute arbitrary code via crafted WINS Name Registration requests followed by a WINS Name Query request.","ecosystems":["Red Hat:rhel_eus:4.5::as","Red Hat:rhel_eus:4.5::es"],"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":"Memory corruption in n/a","id":"CVE-2007-5398","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"samba:samba","products":["samba:samba"],"type":"memory_corruption","year":"2007"},"n_packages":10,"n_references":53,"next":{"headline":"Memory corruption in n/a","id":"CVE-2007-5399"},"packages":[{"ecosystem":"Red Hat:rhel_eus:4.5::as","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::as","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::as","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::as","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::as","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::es","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::es","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::es","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::es","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2007:1034"},{"ecosystem":"Red Hat:rhel_eus:4.5::es","fixed":["0:3.0.10-2.el4_5.1"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2007:1034"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2007-5397"},"products":["n/a"],"published":"2007-11-16","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-1182","kev_date_added":null,"published":"2012-04-10"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2007-2446","kev_date_added":null,"published":"2007-05-14"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2004-0600","kev_date_added":null,"published":"2004-07-23"},{"cvss_score":10,"headline":"Denial of service in n/a","id":"CVE-1999-0810","kev_date_added":null,"published":"2000-01-04"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-1999-0182","kev_date_added":null,"published":"1999-09-29"},{"cvss_score":9.8,"headline":"Weak cryptography in Samba","id":"CVE-2022-45141","kev_date_added":null,"published":"2023-03-06"},{"cvss_score":9.3,"headline":"Other in n/a","id":"CVE-2009-1886","kev_date_added":null,"published":"2009-06-24"}],"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":"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-08-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code on Samba servers configured as WINS servers via crafted NetBIOS packets.","url":"https://insights.sbomify.com/CVE-2007-5398/"}