Heap Buffer Overflow in Exiv2 Package: CVE-2025-26623

exiv2 Updated 14 Dec 2025

Summary

18/02/2025
N/A
Yes i
Medium
5.3

UBUNTU-CVE-2025-26623: Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. Affects exiv2 versions < 0.28.4+dfsg-2. Fixed in 0.28.4+dfsg-2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Exiv2 is a C++ library and command-line utility designed for reading, writing, deleting, and modifying metadata in image files, including Exif, IPTC, XMP, and ICC formats. It is widely used for managing image metadata and is available in various distributions, including Ubuntu. The vulnerability in question affects versions 0.28.0 to 0.28.4 of Exiv2, which can lead to severe security risks if exploited.

Vulnerability Detail

A heap buffer overflow vulnerability was identified in Exiv2 versions 0.28.0 to 0.28.4. This vulnerability is triggered when Exiv2 is used to write metadata into a specially crafted image file. An attacker could exploit this flaw to execute arbitrary code if they can convince a victim to run Exiv2 on the malicious image. The issue arises specifically during the writing of metadata, which is less common than reading metadata. The vulnerability is fixed in version 0.28.5.

How To Fix

Minimum fixed version

0.28.4+dfsg-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade exiv2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for this vulnerability. The best course of action is to upgrade to the fixed version.

Conclusion

The vulnerability CVE-2025-26623 in the Exiv2 package poses a significant risk due to the potential for code execution via a heap buffer overflow. Users are advised to upgrade to version 0.28.5 to mitigate this risk, as no workarounds are available.

See every vulnerability recorded for exiv2 →

Share this vulnerability

FAQ

CVE-2025-26623 is a vulnerability in the Exiv2 package that allows for a heap buffer overflow, potentially leading to code execution.

Exiv2 versions 0.28.0 to 0.28.4 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

Currently, there are no workarounds available. It is strongly recommended to upgrade to the patched version as soon as possible.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json, without requiring code access or installation.

Related vulnerabilities

Recent vulnerabilities recorded for exiv2.

How To Fix

Minimum fixed version

0.28.4+dfsg-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade exiv2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback