Description
smallbitvec is a growable bit-vector for Rust, optimized for size. From 1.0.1 to 2.6.0, an integer overflow in the internal capacity calculation of smallbitvec can lead to an undersized heap allocation, resulting in a heap buffer overflow through safe APIs only. This allows memory corruption without requiring unsafe code from the caller. This vulnerability is fixed in 2.6.1.
Published: 2026-05-26
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the internal capacity calculation of a resizeable bit‑vector library, where an integer overflow generates an undersized heap allocation. This results in a heap buffer overflow that can corrupt arbitrary memory. The flaw is exposed through the library’s safe API, so callers do not need to use unsafe Rust code to exploit it. The direct impact is that an attacker who can influence the size of a bit‑vector instance may cause the program to read or write beyond its intended bounds.

Affected Systems

The affected component is the smallbitvec crate, a growable bit‑vector implementation from the Servo project. Versions from 1.0.1 up to and including 2.6.0 inherit the bug. The issue was resolved in version 2.6.1, which corrects the capacity calculation to prevent the overflow.

Risk and Exploitability

The CVSS score of 7.3 indicates a moderately high severity. No exploit probability (EPSS) data is available, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to trigger the smallbitvec capacity calculation with a value that overflows, typically by supplying a large input to code that constructs or resizes a bit‑vector. While the flaw can be triggered from user‑controlled data, it requires an ability to create the vulnerable object, making remote exploitation less straightforward but still plausible in contexts where the library processes external input.

Generated by OpenCVE AI on May 26, 2026 at 22:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the smallbitvec crate to version 2.6.1 or later in Cargo.toml and Cargo.lock and rebuild the binary.
  • Verify all transitive dependencies to ensure no older pre‑2.6.1 releases remain; run cargo audit or check Cargo.lock and adjust any affected crates accordingly.
  • If an immediate upgrade is not feasible, add validation logic around all bit‑vector construction and resizing calls to enforce a maximum size that will not trigger the overflow; optionally wrap constructors to reject unsafe sizes.

Generated by OpenCVE AI on May 26, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-97wc-2hqc-cjgr smallbitvec: Integer overflow in safe API leads to heap buffer overflow
History

Wed, 27 May 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 27 May 2026 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Servo
Servo smallvec
Vendors & Products Servo
Servo smallvec

Tue, 26 May 2026 21:45:00 +0000

Type Values Removed Values Added
Description smallbitvec is a growable bit-vector for Rust, optimized for size. From 1.0.1 to 2.6.0, an integer overflow in the internal capacity calculation of smallbitvec can lead to an undersized heap allocation, resulting in a heap buffer overflow through safe APIs only. This allows memory corruption without requiring unsafe code from the caller. This vulnerability is fixed in 2.6.1.
Title smallbitvec: Safe API Triggered Heap Buffer Overflow via Integer Overflow
Weaknesses CWE-122
CWE-190
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-27T12:45:15.497Z

Reserved: 2026-05-08T16:23:33.264Z

Link: CVE-2026-44983

cve-icon Vulnrichment

Updated: 2026-05-27T12:44:58.323Z

cve-icon NVD

Status : Deferred

Published: 2026-05-26T22:16:43.440

Modified: 2026-06-01T18:22:32.550

Link: CVE-2026-44983

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T09:15:29Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-190

    Integer Overflow or Wraparound