Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStage crafted WebP with malformed GPS EXIF tags
-
DeliveryDeliver image to target system or pipeline
-
ExploitTrigger jhead processing of crafted file
-
ExecutionOverflow heap buffer in ProcessGpsInfo()
-
PersistCorrupt adjacent heap memory
-
ImpactCrash process or achieve limited code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local access to a system where jhead is installed, with at minimum low-privilege execution rights (PR:L per CVSS 4.0). The attacker must be able to supply or cause the processing of a specially crafted WebP image containing malformed GPS EXIF tag values (TAG_GPS_LAT or TAG_GPS_LONG). The vulnerability is triggered specifically in jhead's WebP EXIF handler code path (gpsinfo.c:ProcessGpsInfo), meaning the image must contain GPS EXIF metadata of the right type. Remote exploitation is not feasible unless jhead is integrated into a web-accessible or remotely-triggered image-processing pipeline. No elevated privileges, special configuration, or non-default settings are required beyond the ability to invoke jhead with an attacker-controlled input file. |
| Impact | The realistic risk here is moderate-to-low despite the presence of public exploit code. The CVSS 4.0 score of 4.8 is well-calibrated: the local attack vector (AV:L) is the primary limiting factor, as exploitation requires an attacker to either be on the same machine or social-engineer a user into processing a crafted image file with jhead. The exploit is publicly available (E:P in the CVSS 4.0 vector), which elevates urgency for environments where jhead is used in automated image-processing pipelines that ingest untrusted content - a scenario where even a modest batch-processing deployment could be exposed. There is no CISA KEV listing and no evidence of active in-the-wild exploitation; this is consistent with jhead's narrow deployment footprint. The maintainer has not responded to the GitHub issue, so no patch timeline can be inferred. Impact is bounded to low C/I/A on the vulnerable system with no scope change, meaning exploitation delivers heap corruption or a local crash rather than remote code execution or privilege escalation beyond the tool's own process. The primary concern is any automated or script-driven use of jhead against untrusted WebP/JPEG files. |
| Exploit ScenarioDerived | An attacker places a crafted WebP image containing malformed TAG_GPS_LAT or TAG_GPS_LONG EXIF values in a location accessible to a victim user or automated pipeline. When jhead processes the file - either directly by a user or via a script - the ProcessGpsInfo() function writes beyond the allocated heap buffer, potentially corrupting adjacent heap metadata. The publicly available POC (https://github.com/user-attachments/files/30397094/poc.zip) demonstrates this crash; in a pipeline context, an attacker who can influence the input image set can trigger this without further interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 14, 2026
Heap-based buffer overflow in jhead up to 3.3 allows a local attacker with low privileges to corrupt process memory by supplying a crafted WebP image with malformed GPS EXIF tags (TAG_GPS_LAT or TAG_GPS_LONG) to the ProcessGpsInfo() function in gpsinfo.c. A proof-of-concept has been publicly released via GitHub, and the project maintainer has not responded to the responsible disclosure report. No vendor-released patch is available at time of analysis.
RemediationAI
No vendor-released patch is available at time of analysis - the project maintainer has not responded to the disclosure report (GitHub issue #99). As a primary compensating control, avoid passing untrusted or externally sourced WebP/JPEG files to jhead; if automated pipelines use jhead, gate input files through an allowlist of trusted sources. Consider sandboxing jhead invocations using seccomp, firejail, or a container with no write access to sensitive paths, which limits blast radius from heap corruption to the process itself. If GPS EXIF handling is not required, evaluate whether the functionality can be bypassed by stripping EXIF data (using exiftool or similar) before jhead processing - note this alters metadata, which may affect downstream workflows. Monitor the upstream GitHub repository (https://github.com/Matthias-Wandel/jhead/) for a patched release and apply it as soon as one is available.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
jhead (CPE: cpe:2.3:a:matthias-wandel:jhead:*:*:*:*:*:*:*:*) is a lightweight command-line utility for inspecting and manipulating EXIF metadata embedded in JPEG (and WebP) images. The vulnerable code path is in gpsinfo.c, specifically the ProcessGpsInfo() function, which parses GPS-related EXIF tags. CWE-122 (Heap-based Buffer Overflow) identifies the root cause: the function does not perform adequate bounds checking on user-supplied GPS latitude/longitude tag values (TAG_GPS_LAT, TAG_GPS_LONG), allowing an attacker to craft EXIF payloads that write beyond the allocated heap buffer. WebP images can embed EXIF metadata, and jhead's handler for this format is the affected code path. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L) confirms the attack is local with low complexity and requires only low-privilege access.
Know when Jhead gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local-only attack (AV:L), low complexity with crafted file, low privileges to run jhead; limited C/I/A impact confined to process heap.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in Matthias-Wandel jhead up to 3.3. This impacts the function ProcessGpsInfo of the file gpsinfo.c of the component WebP EXIF Handler. Such manipulation of the argument TAG_GPS_LAT/TAG_GPS_LONG leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed publicly and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then using the r
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file. Ra
The ProcessGpsInfo function of the gpsinfo.c file of jhead 3.00 may allow a remote attacker to cause a denial-of-service
The ProcessGpsInfo function of the gpsinfo.c file of jhead 3.00 may allow a remote attacker to cause a denial-of-service
jhead through 3.04 has a heap-based buffer over-read in Get32s when called from ProcessGpsInfo in gpsinfo.c. Rated high
jhead through 3.04 has a heap-based buffer over-read in process_DQT in jpgqguess.c. Rated high severity (CVSS 7.1), this
jhead 3.03 is affected by: heap-based buffer over-read. Rated medium severity (CVSS 5.5), this vulnerability is no authe
jhead 3.03 is affected by: Incorrect Access Control. Rated medium severity (CVSS 5.5), this vulnerability is no authenti
jhead 3.03 is affected by: Buffer Overflow. Rated medium severity (CVSS 5.5), this vulnerability is no authentication re
Double free in jhead 3.3 and earlier, in the PNG Section Handler functions RemovePngSection and RemovePngSectionByType i
Out-of-bounds read in jhead's EXIF parser crashes the application when processing a crafted JPEG file. The Get16u() func
An integer underflow bug in the process_EXIF function of the exif.c file of jhead 3.00 raises a heap-based buffer over-r
EUVD-2026-77198
GHSA-9693-5mmv-mwq9
NVD
CVE.org
EPSS
VulDB
Exploit-DB