GHSA-mc39-h54g-pvw6: Libdav1d sys Libdav1d-sys Affected By Dav1d AV1 Vulnerability

MODERATE
CVSS 5.9
CWE-190
Published
Advisory Summary

GHSA-mc39-h54g-pvw6 is a MODERATE (CVSS 5.9) libdav1d-sys affected by dav1d av1 vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Libdav1d sys libraries in the crates.io ecosystem. The issue involves libdav1d-sys affected by dav1d av1 decoder integer overflow. Remediation is available by upgrading affected packages to version 0.7.0.

GHSA-mc39-h54g-pvw6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mc39-h54g-pvw6
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Libdav1d sys
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix GHSA-mc39-h54g-pvw6

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

libdav1d-sys fixed: 0.7.0
Upgrade libdav1d-sys to 0.7.0
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 libdav1d-sys

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mc39-h54g-pvw6, inspect your project dependencies for Libdav1d sys:

inspect dependencies for libdav1d-sys

Analyze the terminal output to locate any version of Libdav1d sys in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0), 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Libdav1d sys, 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

An integer overflow in dav1d AV1 decoder that can occur when decoding videos with large frame size. This can lead to memory corruption within the AV1 decoder. We recommend upgrading to version 0.7.0 of libdav1d-sys, which includes dav1d 1.4.0.

GHSA-mc39-h54g-pvw6 Affected Libdav1d sys Versions

1 component(s)
Fixed Versions:
0.7.0
Product / Package Ecosystem Affected Versions Fixed Version
libdav1d-sys
crates.io
< 0.7.0
0.7.0

References

Frequently Asked Questions

What is GHSA-mc39-h54g-pvw6?
GHSA-mc39-h54g-pvw6 is a security vulnerability in Libdav1d sys involving libdav1d-sys affected by dav1d AV1 decoder integer overflow under CWE-190: Integer Overflow or Wraparound.
Which Libdav1d sys versions are affected?
Affected versions include releases prior to 0.7.0 across affected packages: libdav1d-sys.
What version fixes GHSA-mc39-h54g-pvw6?
Upgrading to 0.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is libdav1d-sys affected?
Yes, libdav1d-sys is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
What is the CVSS score of GHSA-mc39-h54g-pvw6?
GHSA-mc39-h54g-pvw6 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L.
What CWE is associated with GHSA-mc39-h54g-pvw6?
GHSA-mc39-h54g-pvw6 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check crates.io dependencies for GHSA-mc39-h54g-pvw6?
Run the dependency tree command: 'inspect dependencies for libdav1d-sys'. 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-mc39-h54g-pvw6",
  "modified" : "2024-04-05T15:42:39Z",
  "published" : "2024-04-05T15:42:39Z",
  "aliases" : [ ],
  "summary" : "libdav1d-sys affected by dav1d AV1 decoder integer overflow",
  "details" : "An integer overflow in dav1d AV1 decoder that can occur when decoding videos with large frame size. This can lead to memory corruption within the AV1 decoder. We recommend upgrading to version 0.7.0 of libdav1d-sys, which includes dav1d 1.4.0.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libdav1d-sys"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/njaard/libavif-rs"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0016.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.cvedetails.com/cve/CVE-2024-1580"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-05T15:42:39Z",
    "nvd_published_at" : null
  }
}