{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2007-4138 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2007-4138 is a medium-severity vulnerability in Samba Samba, published on 14 Sep 2007. 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-2007-4138 and fix it if it is affected.\n\nWhat it is: CVE-2007-4138 is a medium-severity vulnerability in Samba Samba, published on 14 Sep 2007. 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-2007-4138 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-4138/ (Markdown: https://insights.sbomify.com/CVE-2007-4138/index.md)","id":"CVE-2007-4138","markdown":"https://insights.sbomify.com/CVE-2007-4138/index.md","name":"CVE-2007-4138","record":{"aliases":["DEBIAN-CVE-2007-4138","GHSA-74rm-gxr2-j77h"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Samba Winbind","requires_auth":"low_privilege","summary":"Local users gain root privileges in Samba when using specific Winbind NSS configurations with undefined primary group attributes.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"samba","vendor":"samba"}],"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 Winbind nss_info extension (nsswitch/idmap_ad.c) in idmap_ad.so in Samba 3.0.25 through 3.0.25c, when the \"winbind nss info\" option is set to rfc2307 or sfu, grants all local users the privileges of gid 0 when the (1) RFC2307 or (2) Services for UNIX (SFU) primary group attribute is not defined.","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":"Privilege escalation in n/a","id":"CVE-2007-4138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"samba:samba","products":["samba:samba"],"type":"privilege_escalation","year":"2007"},"n_packages":0,"n_references":19,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2007-4139"},"packages":[],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2007-4137"},"products":["n/a"],"published":"2007-09-14","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":"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":"Local users gain root privileges in Samba when using specific Winbind NSS configurations with undefined primary group attributes.","url":"https://insights.sbomify.com/CVE-2007-4138/"}