CVE-2023-50671

7.8 HIGH

📋 TL;DR

CVE-2023-50671 is a heap-based buffer overflow vulnerability in exiftags 1.01 that allows writing 28 bytes to an unexpected memory address via the nikon_prop1 function. This vulnerability affects systems running exiftags 1.01 to process Nikon image files. Attackers could potentially execute arbitrary code or cause denial of service.

💻 Affected Systems

Products:
  • exiftags
Versions: 1.01
Operating Systems: Linux, Unix-like systems
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability triggers when processing Nikon image files with specific metadata.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise if exiftags processes attacker-controlled image files.

🟠

Likely Case

Application crash (denial of service) when processing malicious Nikon image files.

🟢

If Mitigated

Limited impact if exiftags runs with minimal privileges and processes only trusted files.

🌐 Internet-Facing: MEDIUM - Risk exists if exiftags processes user-uploaded images on web servers, but requires specific file processing.
🏢 Internal Only: LOW - Typically used for local image analysis, not commonly exposed to untrusted sources.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Proof of concept available in referenced blog posts. Exploitation requires crafting specific Nikon image files.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: https://johnst.org/sw/exiftags/

Restart Required: No

Instructions:

1. Check if exiftags 1.01 is installed. 2. Uninstall exiftags 1.01. 3. Consider alternative EXIF tools like exiftool. 4. Monitor for updated version from maintainer.

🔧 Temporary Workarounds

Remove exiftags

linux

Uninstall vulnerable exiftags version

sudo apt remove exiftags
sudo yum remove exiftags
sudo pacman -R exiftags

Restrict file processing

linux

Limit exiftags to process only trusted files

chmod 700 /usr/bin/exiftags
setfacl -m u:trusteduser:rx /usr/bin/exiftags

🧯 If You Can't Patch

  • Run exiftags with minimal privileges (non-root user)
  • Implement strict input validation for image files before processing

🔍 How to Verify

Check if Vulnerable:

Run 'exiftags --version' and check if output shows 1.01

Check Version:

exiftags --version 2>/dev/null || echo 'Not installed'

Verify Fix Applied:

Verify exiftags is not installed or version is not 1.01

📡 Detection & Monitoring

Log Indicators:

  • Segmentation fault or crash logs from exiftags process
  • Unexpected memory access errors in system logs

Network Indicators:

  • Unusual image file uploads to systems running exiftags

SIEM Query:

process.name:"exiftags" AND (event.action:"segmentation_fault" OR event.outcome:"failure")

🔗 References

📤 Share & Export