An open API service providing security vulnerability metadata for many open source software ecosystems.

GSA_kwCzR0hTQS0zOGg0LWZ4ODUtcWN4N84ABEsm

Moderate CVSS: 5.3 EPSS: 0.00277% (0.50744 Percentile) EPSS:

Exiv2 allows Use After Free

Affected Packages Affected Versions Fixed Versions
pypi:Exiv2
PURL: pkg:pypi/exiv2
>= 0.28.0, < 0.28.5 0.28.5
1 Dependent packages
5 Dependent repositories
5,298 Downloads last month

Affected Version Ranges

All affected versions

All unaffected versions

0.3.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.14.1, 0.15.0, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5

Impact

A heap buffer overflow was found in Exiv2 versions v0.28.0 to v0.28.4. Versions prior to v0.28.0, such as v0.27.7, are not affected. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file.

Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as fixiso.

Patches

The bug is fixed in version v0.28.5.

References

Issue: https://github.com/Exiv2/exiv2/issues/3168
Fix: https://github.com/Exiv2/exiv2/pull/3174

For more information

Please see our security policy for information about Exiv2 security.

References: