CVE-2025-55304
Python vulnerability analysis and mitigation

Overview

Exiv2, a C++ library and command-line utility for reading, writing, deleting, and modifying image metadata (Exif, IPTC, XMP, and ICC), was found to contain a denial-of-service vulnerability (CVE-2025-55304) in version 0.28.5. The vulnerability was discovered on August 15, 2025, and publicly disclosed on August 29, 2025. The issue affects the ICC profile parsing code in the jpegBase::readMetadata() function, which can cause the application to run for an extended period when processing crafted JPG image files (GitHub Advisory, NVD).

Technical details

The vulnerability stems from a quadratic algorithm in the ICC profile parsing code where the application repeatedly reallocates and copies the entire buffer for each segment when processing ICC profiles. The issue occurs specifically in the jpegBase::readMetadata() function when handling ICC profile chunks. The vulnerability has been assigned a CVSS v4.0 base score of 1.8 (Low) with vector string CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N, and a CVSS v3.1 base score of 5.5 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The vulnerability is classified as CWE-407 (Inefficient Algorithmic Complexity) (GitHub Advisory, NVD).

Impact

The vulnerability can lead to a denial-of-service condition when Exiv2 processes a specially crafted JPG image file. The inefficient algorithm causes the application to consume excessive CPU resources and run for an extended period, potentially making the system unresponsive (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Exiv2 version 0.28.6. The fix introduces a new appendIccProfile method that efficiently handles the appending of bytes to the ICC profile without requiring repeated buffer reallocations and copies (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58367CRITICAL10
  • PythonPython
  • deepdiff
NoYesSep 05, 2025
CVE-2025-58438CRITICAL9.4
  • PythonPython
  • python-internetarchive
NoYesSep 06, 2025
CVE-2025-55037CRITICAL9.3
  • PythonPython
  • tkeasygui
NoYesSep 05, 2025
CVE-2025-55671HIGH8.5
  • PythonPython
  • tkeasygui
NoYesSep 05, 2025
CVE-2025-58446MEDIUM6.9
  • PythonPython
  • xgrammar
NoYesSep 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management