CVE-2026-33306 — Vulnerability in bcrypt — CVE Details
bcrypt-ruby has an Integer Overflow that Causes Zero Key-Strengthening Iterations at Cost=31 on JRuby
Summary
Advisory Timeline
- First published March 19, 2026 (207 days ago).
- Last revised March 25, 2026 — 6 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install bcrypt -v 3.1.22
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| bcrypt | rubygems | 3.1.10, 3.1.11, 3.1.12, 3.1.12.rc1 (+14 more) | 3.1.22 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-190Integer OverflowMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
References
- https://github.com/bcrypt-ruby/bcrypt-ruby/security/advisories/GHSA-f27w-vcwj-c954WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-33306ADVISORY
- https://github.com/bcrypt-ruby/bcrypt-ruby/commit/831ce64cb0a9502130fa93a28bfd9527a5fa45c4WEB
- https://github.com/bcrypt-ruby/bcrypt-rubyPACKAGE
- https://github.com/bcrypt-ruby/bcrypt-ruby/releases/tag/v3.1.22WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bcrypt/CVE-2026-33306.ymlWEB
Frequently Asked Questions
- What is CVE-2026-33306?
- bcrypt-ruby has an Integer Overflow that Causes Zero Key-Strengthening Iterations at Cost=31 on JRuby This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2026-33306?
- CVE-2026-33306 affects bcrypt. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33306 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies