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.
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.