CVE-2024-2824
Medium · 6.3CVSS
6.3
EPSS
0.7%
Published
Mar 22, 2024
CISA due date
—
Cloudanix analysis
A flaw in software that reads photo details lets attackers send bad files that could take over or crash systems handling images.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in PrintFormatNumber function of exif.c triggered by crafted EXIF data manipulation.
Why it matters to the business
Remote attackers could crash or execute arbitrary code on systems processing image metadata, potentially leading to service disruption or compromise in environments relying on affected packages; low urgency given stable low EPSS and no KEV listing despite public exploit availability since 2024.
How an attack unfolds
An attacker crafts a malicious image file containing oversized EXIF metadata and delivers it to a target application that invokes jhead's PrintFormatNumber function, causing the overflow to corrupt heap memory and potentially achieve code execution.
How to fix it
Update affected AlmaLinux 8 packages to the listed fixed versions: Judy to 1.0.5-18.module_el8.6.0+2867+72759d2f, galera to 26.4.9-4.module_el8.6.0+2761+593e5e59, and all mariadb* packages to their respective 3:10.5.13-1.module_el8.* versions; rebuild or restart dependent services after upgrade.
How to confirm the fix worked
Verify package versions match the fixed releases using package manager queries; test EXIF parsing with known benign and edge-case image files to confirm no overflow occurs.
Typical attack path
- Identify target application or service that parses EXIF data via affected jhead code
- Craft malicious image or file with manipulated EXIF tags to trigger buffer overflow
- Deliver the file remotely to the vulnerable component
- Trigger processing of the file to execute overflow and gain initial access or cause denial of service
How to detect it
Inspect application and system logs for unexpected crashes or errors during image/EXIF processing; review file upload or processing histories for suspicious image files around the time of any anomalies.
What your security team should do
- Prioritize upgrading all listed mariadb and related packages to the specified fixed versions across AlmaLinux 8 deployments
- Monitor for any remaining jhead 3.08 instances and replace with patched builds
- Review image processing workflows for unnecessary EXIF parsing exposure
The record
A vulnerability was found in Matthias-Wandel jhead 3.08 and classified as critical. This issue affects the function PrintFormatNumber of the file exif.c. The manipulation leads to heap-based buffer overflow. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-257711.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | jhead | 0 | No fix |
| Debian:11 | jhead | 0 | No fix |
| Debian:12 | jhead | 0 | No fix |
| Debian:13 | jhead | 0 | No fix |
| Ubuntu:20.04:LTS | jhead | 0 | No fix |
| Ubuntu:22.04:LTS | jhead | 0 | No fix |
| Ubuntu:24.04:LTS | jhead | 0 | No fix |
| Ubuntu:24.10 | jhead | 0 | No fix |
| Ubuntu:25.04 | jhead | 0 | No fix |
| Ubuntu:25.10 | jhead | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | jhead | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | jhead | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | jhead | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | jhead | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | jhead | 0 | No fix |
Related vulnerabilities
- CVE-2026-112403 Pillow is a Python imaging library. CWE-122
- CVE-2026-112393 Pillow is a Python imaging library. CWE-122
- CVE-2026-112395 Pillow is a Python imaging library. CWE-122
- CVE-2026-103658 GNU Aspell 0.60.8.2 (first vulnerable version is not known) contains a heap-based buffer… CWE-122
- CVE-2026-107161 A heap-based buffer overflow flaw was found in Cyrus SASL. CWE-122
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-122
- CVE-2026-106564 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-122
- CVE-2026-46570 In NTFS-3G before 2026.7.7, a heap buffer overflow exists in ntfs_index_walk_down() in… CWE-122