Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted PNG to jhead
-
ExploitParse malformed PNG section
-
ExecutionTrigger double free in RemovePngSection
-
ImpactHeap corruption and crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires the victim to process an attacker-supplied PNG file with jhead (version 3.3 or earlier); specifically the input must reach the PNG Section Handler code path that calls RemovePngSection/RemovePngSectionByType in src/pngfile.c. The limiting factor is the required user interaction (UI:P): the attack is not self-propagating and does not fire without someone running jhead on the malicious file. Network (AV:N) exposure applies only where jhead is invoked server-side on uploaded images; for ordinary local CLI use the effective vector is local. No authentication is involved (PR:N). No patched version is available, so the exploitation precondition - running a vulnerable jhead on crafted input - cannot currently be removed by updating. |
| Impact | This is a moderate-severity, low-urgency issue. The authoritative signal is a CVSS 4.0 base vector of CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L (score 5.3) assigned by VulDB, the sole reporting source. No EPSS score and no CISA KEV listing were supplied, so there is no evidence of active exploitation; per the input this is 'no public exploit identified' in the strict sense only partially - a public PoC reference (a zip attachment on the vendor's GitHub issue) exists but is not verified as working exploit code, so POC availability and active exploitation must not be conflated. The vuln.today decision label is 'this_month', consistent with a real but non-emergency priority. A key tension exists in the CVSS vector: UI:P (passive user interaction, i.e. UI:R in 3.1 terms) means a victim must process an attacker-supplied PNG, which materially lowers real-world risk below what AV:N/PR:N alone would suggest - this is not drive-by remote code execution. Furthermore, AV:N is debatable for what is fundamentally a standalone command-line EXIF tool: network vector only applies when jhead is embedded in a server-side image-processing pipeline; for direct CLI use the vector is effectively local. CWE-415 (double free) most plausibly yields a crash/denial of service; the vendor's VC:L/VI:L claims code-execution potential, but the sources do not demonstrate it. Overall: a genuine memory-safety bug worth patching this month, not a widespread emergency, and its footprint is constrained by the product's niche deployment and the required user interaction. |
| Exploit ScenarioDerived | An attacker crafts a malformed PNG whose section structure triggers the double free in jhead's RemovePngSection/RemovePngSectionByType handling, then delivers it to a victim (e.g. as an image upload to a service that runs jhead, or a file a user processes locally). When jhead parses the PNG the double free corrupts the heap, most likely crashing the tool and denying service. A public PoC reference (jhead_png_ekif_double_free.zip) is attached to the upstream issue, but it is not verified as working exploit code and reliable code execution is not demonstrated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Double free in jhead 3.3 and earlier, in the PNG Section Handler functions RemovePngSection and RemovePngSectionByType in src/pngfile.c, means a crafted PNG file can corrupt the heap when the tool processes it. The vendor's own CVSS 4.0 rating is 5.3 (AV:N), but the assessed CVSS 3.1 vector is local with required user interaction (AV:L/AC:L/PR:N/UI:R/C:N/I:N/A:L), so the practical impact is limited to availability of the jhead process; network exposure applies only where jhead is invoked server-side on uploaded images. A public PoC reference exists (an attachment linked from the upstream issue); it is not verified as working exploit code, and there is no confirmed active exploitation. No vendor-released patch has been identified at time of analysis: the project was notified through issue 114 and has not responded, so this is tracked as a this-month priority rather than an emergency.
RemediationAI
No vendor-released patch has been identified at time of analysis, and the upstream project has not responded to the issue report at https://github.com/Matthias-Wandel/jhead/issues/114, so there is no version to upgrade to yet; monitor that issue, the repository at https://github.com/Matthias-Wandel/jhead/, and the VulDB entry https://vuldb.com/vuln/440916 for a fix. Because the exploitation precondition is running a vulnerable jhead against a crafted PNG, the actionable compensating controls are to avoid invoking jhead on untrusted or user-supplied PNG files and to pre-screen or convert such images with a different, maintained tool before any metadata inspection - at the cost of losing jhead-specific EXIF editing behaviour on those inputs. Where jhead is called server-side on uploaded images, reject PNG uploads at the ingestion boundary or route them to a separate worker so that a crash only affects that worker, and run jhead under a low-privilege account with memory limits so a double free terminates the process rather than destabilising the host; the trade-off is reduced functionality and, for the worker isolation, additional operational complexity. None of these controls removes the underlying bug - only a vendor fix does that.
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 is a small C command-line utility for reading and editing EXIF/JPEG metadata, and its src/pngfile.c module handles PNG chunks - including routines such as RemovePngSection and RemovePngSectionByType that strip named sections (for example eXIf or other ancillary chunks) from a PNG file. The flaw is classed CWE-415 (double free): the same heap allocation is released twice along the PNG section-removal path, which corrupts allocator bookkeeping and can lead to a crash or, in principle, further memory corruption. jhead parses files in-process without a sandbox, so a malformed PNG reaching this handler is processed with the privileges of the invoking user. The supplied evidence does not describe the precise malformed-chunk layout or ordering needed to reach the second free; what is confirmed is that the input must reach the PNG Section Handler code path that calls RemovePngSection/RemovePngSectionByType, and that exploitation requires the victim to run jhead on an attacker-supplied PNG. The assigned CPE cpe:2.3:a:matthias-wandel:jhead up to 3.3 confirms the affected codebase is the upstream Matthias-Wandel jhead project.
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:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
jhead is a local CLI parsing an attacker-supplied file (AV:L, UI:R); a double free most plausibly crashes the process, so A:L with C:N/I:N absent demonstrated code execution.
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 affects the function RemovePngSectionByType/RemovePngSection of the file src/pngfile.c of the component PNG Section Handler. The manipulation leads to double free. Remote exploitation of the attack is possible. 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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Heap-based buffer overflow in jhead up to 3.3 allows a local attacker with low privileges to corrupt process memory by s
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-131222
GHSA-vgr9-hx53-v9m3
NVD
CVE.org
EPSS
VulDB
Exploit-DB