---
title: "CVE-2026-33306"
canonical_url: "https://pkgseek.com/security/CVE-2026-33306"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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 causes the round count to become negative, and the strengthening loop executes **zero iterations**. T…

CVE-2026-33306 严重级别为 HIGH (7.5)，共索引 1 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: HIGH (7.5)
- **受影响构建数**: 1
- **涉及发行版**: 1
- **已标明修复版本发行版**: 暂无已标明修复记录

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | ruby-bcrypt | 3.1.20-1+b2 | — |
