bcrypt-ruby Gem for Ruby incorrect encoding of non US-ASCII characters (JRuby only)


2017-04-01 19:11
2017-01-05 20:15


bcrypt-ruby Gem for Ruby suffered from a bug related to character
encoding that substantially reduced the entropy of hashed passwords
containing non US-ASCII characters. An incorrect encoding step
transparently replaced such characters by '?' prior to hashing. In the
worst case of a password consisting solely of non-US-ASCII characters,
this would cause its hash to be equivalent to all other such passwords
of the same length. This issue only affects the JRuby implementation.

This gem has been renamed. Please use "bcrypt" from now on.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
bcrypt-ruby >= 2.1.4 None