Skip to content

Conversation

@t3tra-dev
Copy link
Contributor

This PR adds safety measures when markitdown invokes ExifTool, to avoid exposure to known issues (e.g., CVE-2021-22204).

  • Changes

    • Run exiftool -ver beforehand and fail fast if the version is below 12.24.
  • Impact

    • On environments without ExifTool or with versions < 12.24, the feature aborts with a clear message.
  • Testing

    • Verify the failure path with ExifTool < 12.24.

    • Verify normal operation with ExifTool ≥ 12.24.

Copilot AI review requested due to automatic review settings August 16, 2025 07:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds version checking for ExifTool to prevent security vulnerabilities by ensuring only safe versions (12.24 or later) are used, protecting against CVE-2021-22204.

  • Adds pre-execution version verification for ExifTool
  • Implements fail-fast behavior when unsafe versions are detected
  • Provides clear error messaging for version-related failures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@afourney afourney merged commit fb1ad24 into microsoft:main Aug 26, 2025
3 checks passed
azhao25 pushed a commit to azhao25/markitdown that referenced this pull request Oct 16, 2025
* feat: add version verification for ExifTool to ensure security compliance
* fix: improve ExifTool version verification

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants