CVE-2021-39480: Bingrep Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-gm68-g349-gxgg
CWE-770
Published
Advisory Summary

CVE-2021-39480 is a MODERATE denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Bingrep libraries in the crates.io ecosystem. The issue involves denial of service in bingrep. Remediation is available in the latest vendor maintenance releases.

CVE-2021-39480 at a Glance

CVE Identifier CVE-2021-39480
GHSA Identifier GHSA-gm68-g349-gxgg
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Bingrep
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2021-39480

To remediate this vulnerability, upgrade all affected Bingrep dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

bingrep fixed: Latest secure release
Upgrade bingrep to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for bingrep

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-39480, inspect your project dependencies for Bingrep:

inspect dependencies for bingrep

Analyze the terminal output to locate any version of Bingrep in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Bingrep, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Bingrep v0.8.5 was discovered to contain a memory allocation failure which can cause a Denial of Service (DoS).

CVE-2021-39480 Affected Bingrep Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
bingrep
crates.io
0.8.5
All 1 versions
0.8.5
None specified

References

Frequently Asked Questions

What is CVE-2021-39480?
CVE-2021-39480 is a security vulnerability in Bingrep involving Denial of service in bingrep under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Bingrep versions are affected?
Affected versions include releases prior to current release patches across affected packages: bingrep.
What version fixes CVE-2021-39480?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is bingrep affected?
Yes, bingrep is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2021-39480?
CVE-2021-39480 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check crates.io dependencies for CVE-2021-39480?
Run the dependency tree command: 'inspect dependencies for bingrep'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gm68-g349-gxgg",
  "modified" : "2022-01-28T22:20:30Z",
  "published" : "2022-01-28T22:35:16Z",
  "aliases" : [ "CVE-2021-39480" ],
  "summary" : "Denial of service in bingrep",
  "details" : "Bingrep v0.8.5 was discovered to contain a memory allocation failure which can cause a Denial of Service (DoS).",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "bingrep"
    },
    "versions" : [ "0.8.5" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39480"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/m4b/bingrep/issues/30"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/m4b/bingrep"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-28T22:20:30Z",
    "nvd_published_at" : "2022-01-21T22:15:00Z"
  }
}