{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-1182 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2012-1182 is a critical vulnerability in Samba Samba, published on 10 Apr 2012. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-1182 and fix it if it is affected.\n\nWhat it is: CVE-2012-1182 is a critical vulnerability in Samba Samba, published on 10 Apr 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-1182 exists.\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-2012-1182/ (Markdown: https://insights.sbomify.com/CVE-2012-1182/index.md)","id":"CVE-2012-1182","markdown":"https://insights.sbomify.com/CVE-2012-1182/index.md","name":"CVE-2012-1182","record":{"aliases":["DEBIAN-CVE-2012-1182","DSA-2450-1","ECHO-59f3-2ff7-5966","GHSA-9w2v-pc9r-gpj4","RHSA-2012:0465","RHSA-2012:0466","RHSA-2012:0478","RHSA-2013:0506","RHSA-2013:0515"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Samba file server","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on Samba servers via crafted RPC calls due to improper array length validation.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"samba","vendor":"samba"}],"cvss":{"score":10,"severity":"critical","source":"nvd","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-189","name":null}],"description":"The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement validation of an array length in a manner consistent with validation of array memory allocation, which allows remote attackers to execute arbitrary code via a crafted RPC call.","ecosystems":["Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::client_workstation","Red Hat:enterprise_linux:5::server","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:rhel_els:4::as","Red Hat:rhel_els:4::es","Red Hat:rhel_eus:5.6","Red Hat:rhel_eus:6.0","Red Hat:rhel_eus:6.1","Red Hat:rhel_mission_critical:5.3"],"exploits":{"exploitdb":1,"first_seen":"2012-04-10","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2012-04-10","kind":"metasploit","ref":"exploit/linux/samba/setinfopolicy_heap","stars":null,"title":"Samba SetInformationPolicy AuditEventsInfo Heap Overflow"},{"date":"2012-10-10","kind":"exploitdb","ref":"21850","stars":null,"title":"Samba 3.4.16/3.5.14/3.6.4 - SetInformationPolicy AuditEventsInfo Heap Overflow (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"Integer overflow in n/a","id":"CVE-2012-1182","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"samba:samba","products":["samba:samba"],"type":"integer_overflow","year":"2012"},"n_packages":228,"n_references":29,"next":{"headline":"Memory corruption in n/a","id":"CVE-2012-1183"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-client","purl":"pkg:rpm/redhat/samba3x-client","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-common","purl":"pkg:rpm/redhat/samba3x-common","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-doc","purl":"pkg:rpm/redhat/samba3x-doc","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-domainjoin-gui","purl":"pkg:rpm/redhat/samba3x-domainjoin-gui","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-swat","purl":"pkg:rpm/redhat/samba3x-swat","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind","purl":"pkg:rpm/redhat/samba3x-winbind","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind-devel","purl":"pkg:rpm/redhat/samba3x-winbind-devel","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.0.33-3.39.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2012:0465"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x","purl":"pkg:rpm/redhat/samba3x","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-client","purl":"pkg:rpm/redhat/samba3x-client","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-common","purl":"pkg:rpm/redhat/samba3x-common","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-debuginfo","purl":"pkg:rpm/redhat/samba3x-debuginfo","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-doc","purl":"pkg:rpm/redhat/samba3x-doc","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-domainjoin-gui","purl":"pkg:rpm/redhat/samba3x-domainjoin-gui","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-swat","purl":"pkg:rpm/redhat/samba3x-swat","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind","purl":"pkg:rpm/redhat/samba3x-winbind","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:3.5.10-0.108.el5_8"],"introduced":["0"],"last_affected":[],"package":"samba3x-winbind-devel","purl":"pkg:rpm/redhat/samba3x-winbind-devel","source":"RHSA-2012:0466"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:0.28.3-12.el6"],"introduced":["0"],"last_affected":[],"package":"evolution-mapi","purl":"pkg:rpm/redhat/evolution-mapi","source":"RHSA-2013:0515"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:0.28.3-12.el6"],"introduced":["0"],"last_affected":[],"package":"evolution-mapi-debuginfo","purl":"pkg:rpm/redhat/evolution-mapi-debuginfo","source":"RHSA-2013:0515"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:0.28.3-12.el6"],"introduced":["0"],"last_affected":[],"package":"evolution-mapi-devel","purl":"pkg:rpm/redhat/evolution-mapi-devel","source":"RHSA-2013:0515"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.5.10-115.el6_2"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2012:0465"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2012-1181"},"products":["n/a"],"published":"2012-04-10","related":[{"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code on Samba servers via crafted RPC calls due to improper array length validation.","url":"https://insights.sbomify.com/CVE-2012-1182/"}