CVE Explorer
CVE-2026-33306
bcrypt-ruby is a Ruby binding for the OpenBSD bcrypt() password hashing algorithm. Prior to version 3.1.22, an integer overflow in the Java BCrypt implementation for JRuby can cause zero iterations in the strengthening loop. Impacted applications must be setting the cost to 31 to see this happen. The JRuby implementation of bcrypt-ruby (`BCrypt.java`) computes the key-strengthening round count as a signed 32-bit integer. When `cost=31` (the maximum allowed by the gem), signed integer overflow c
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"bcrypt-ruby","vendor":"bcrypt-ruby","versions":[{"status":"affected","version":"< 3.1.22"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":4.5,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/bcrypt-ruby/bcrypt-ruby/commit/831ce64cb0a9502130fa93a28bfd9527a5fa45c4","tags":["x_refsource_MISC"],"url":"https://github.com/bcrypt-ruby/bcrypt-ruby/commit/831ce64cb0a9502130fa93a28bfd9527a5fa45c4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/references/1
{"name":"https://github.com/bcrypt-ruby/bcrypt-ruby/releases/tag/v3.1.22","tags":["x_refsource_MISC"],"url":"https://github.com/bcrypt-ruby/bcrypt-ruby/releases/tag/v3.1.22"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/references/2
{"name":"https://github.com/bcrypt-ruby/bcrypt-ruby/security/advisories/GHSA-f27w-vcwj-c954","tags":["x_refsource_CONFIRM"],"url":"https://github.com/bcrypt-ruby/bcrypt-ruby/security/advisories/GHSA-f27w-vcwj-c954"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2e33f97736c4dae9902aebeda4259325100cd4fa584115f8e0b1ef0528095f9 · sha256:d167528cdf89c331… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.