GHSA-mc39-h54g-pvw6: Libdav1d sys Libdav1d-sys Affected By Dav1d AV1 Vulnerability
MODERATEGHSA-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
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).
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.
Upgrade libdav1d-sys to 0.7.0
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
GHSA-mc39-h54g-pvw6 Affected Libdav1d sys Versions
1 component(s)| 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?
Which Libdav1d sys versions are affected?
What version fixes GHSA-mc39-h54g-pvw6?
Is libdav1d-sys affected?
What is the CVSS score of GHSA-mc39-h54g-pvw6?
What CWE is associated with GHSA-mc39-h54g-pvw6?
How can I check crates.io dependencies for GHSA-mc39-h54g-pvw6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}