CVE-2024-24826: Exiv2 :NikonTagsDecoder Vulnerability
MODERATECVE-2024-24826 is a MODERATE (CVSS 5.5) :nikontagsdecoder vulnerability (CWE-125: Out-of-bounds Read) affecting Exiv2 libraries in the PyPI ecosystem. The issue involves :nikontagsdecoder. Remediation is available by upgrading affected packages to version 0.16.1.
CVE-2024-24826 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-24826
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-24826, 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. 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-24826 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-24826?
Which Exiv2 versions are affected?
What version fixes CVE-2024-24826?
Is exiv2 affected?
What is the CVSS score of CVE-2024-24826?
What CWE is associated with CVE-2024-24826?
How can I check PyPI dependencies for CVE-2024-24826?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g9xm-7538-mq8w",
"modified" : "2024-10-23T17:39:53Z",
"published" : "2024-10-17T17:12:21Z",
"aliases" : [ "CVE-2024-24826" ],
"summary" : "Exiv2 has an out-of-bounds read in QuickTimeVideo::NikonTagsDecoder",
"details" : "### Impact\nAn out-of-bounds read was found in Exiv2 version v0.28.1. The vulnerable function, `QuickTimeVideo::NikonTagsDecoder`, 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 out-of-bounds read 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-g9xm-7538-mq8w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24826"
}, {
"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-106.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-17T17:12:21Z",
"nvd_published_at" : "2024-02-12T23:15:08Z"
}
}