CVE-2021-29457
JSON

7.8high

Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
2.15% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. 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 `insert`. The bug is fixed in version v0.27.4.

Affected

Product or packageVersionsReported by
Exiv2 exiv2< 0.27.4, before 0.27.4CVE List, NVD
fedoraproject fedora33, 34NVD
debian debian_linux9.0, 10.0NVD

All scores

NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. 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 `insert`. The bug is fixed in version v0.27.4.

NVD (es)

Exiv2 es una utilidad de línea de comandos y una biblioteca C++ para leer, escribir, eliminar y modificar los metadatos de archivos de imagen.&#xa0;Se encontró un desbordamiento del búfer de pila en Exiv2 versiones v0.27.3 y anteriores.&#xa0;El desbordamiento de la pila es desencadenado cuando es usado Exiv2 para escribir metadatos en un archivo de imagen diseñado.&#xa0;Un atacante podría explotar potencialmente la vulnerabilidad para obtener una ejecución de código, si puede engañar a la víctima para que ejecute Exiv2 en un archivo de imagen diseñado.&#xa0;Note que este bug solo es desencadenado cuando _writing_ los metadatos, que es una operación Exiv2 que es usada con menos frecuencia que _reading_ los metadatos.&#xa0;Por ejemplo, para desencadenar el bug en la aplicación de línea de comandos Exiv2, debe agregar un argumento de línea de comando adicional como "insert".&#xa0;El bug es corregido en versión v0.27.4

References

Sources

SourceRecordLicence
CVE ListCVE-2021-29457 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-29457 changed 2026-06-17Public domain