CVE-2024-25112: Exiv2 :multipleEntriesDecoder Vulnerability
MODERATECVE-2024-25112 is a MODERATE (CVSS 5.5) :multipleentriesdecoder vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Exiv2 libraries in the PyPI ecosystem. The issue involves :multipleentriesdecoder. Remediation is available by upgrading affected packages to version 0.16.1.
CVE-2024-25112 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-25112
To remediate this vulnerability, upgrade all affected Exiv2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install exiv2>=0.16.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show exiv2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-25112, inspect your installed packages using pip:
pip show exiv2
Analyze the terminal output to locate any version of Exiv2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.1), your application is affected.
Note: The pip show exiv2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Exiv2, 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
CVE-2024-25112 Affected Exiv2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
exiv2
|
PyPI |
≥ 0.16.0
< 0.16.1
|
0.16.1
|
References
Frequently Asked Questions
What is CVE-2024-25112?
Which Exiv2 versions are affected?
What version fixes CVE-2024-25112?
Is exiv2 affected?
What is the CVSS score of CVE-2024-25112?
What CWE is associated with CVE-2024-25112?
How can I check PyPI dependencies for CVE-2024-25112?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-crmj-qh74-2r36",
"modified" : "2024-10-23T17:40:19Z",
"published" : "2024-10-17T17:13:24Z",
"aliases" : [ "CVE-2024-25112" ],
"summary" : "Exiv2 has a denial of service due to unbounded recursion in QuickTimeVideo::multipleEntriesDecoder",
"details" : "### Impact\nA denial-of-service was found in Exiv2 version v0.28.1: an unbounded recursion can cause Exiv2 to crash by exhausting the stack. The vulnerable function, `QuickTimeVideo::multipleEntriesDecoder`, was new in v0.28.0 (see https://github.com/Exiv2/exiv2/pull/2337), so Exiv2 versions before v0.28 are _not_ affected. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The denial-of-service is triggered when Exiv2 is used to read the metadata of a crafted video file.\n\n### Patches\nThe bug is fixed in version v0.28.2.\n\n### For more information\nPlease see our [security policy](https://github.com/Exiv2/exiv2/security/policy) for information about Exiv2 security.\n\n### Credit\nThis bug was found by [OSS-Fuzz](https://github.com/google/oss-fuzz).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "exiv2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.16.0"
}, {
"fixed" : "0.16.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Exiv2/exiv2/security/advisories/GHSA-crmj-qh74-2r36"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25112"
}, {
"type" : "WEB",
"url" : "https://github.com/Exiv2/exiv2/pull/2337"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Exiv2/exiv2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/exiv2/PYSEC-2024-107.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-674" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-17T17:13:24Z",
"nvd_published_at" : "2024-02-12T23:15:08Z"
}
}