Skip to main content

jhead CVE-2026-133496

| EUVDEUVD-2026-131222 LOW
Double Free (CWE-415)
2026-11-20 VulDB GHSA-vgr9-hx53-v9m3
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted PNG to jhead
  2. Exploit
    Parse malformed PNG section
  3. Execution
    Trigger double free in RemovePngSection
  4. Impact
    Heap 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

jhead 3.0
jhead 3.1
jhead 3.2
jhead 3.3

Affected Packages

euvd jhead no fix

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 3.3 LOW

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 20, 2026 - 08:22 NVD
MEDIUM LOW
CVSS changed
Nov 20, 2026 - 08:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 20, 2026 - 07:15 cve.org
MEDIUM 5.3

DescriptionCVE.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

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Low
niche open-source command-line EXIF/image metadata utility
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Jhead

View all
CVE-2022-41751 HIGH POC
7.8 Oct 17

Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then using the r

CVE-2021-3496 HIGH POC
7.8 Apr 22

A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file. Ra

CVE-2018-17088 HIGH POC
7.8 Sep 16

The ProcessGpsInfo function of the gpsinfo.c file of jhead 3.00 may allow a remote attacker to cause a denial-of-service

CVE-2018-16554 HIGH POC
7.8 Sep 16

The ProcessGpsInfo function of the gpsinfo.c file of jhead 3.00 may allow a remote attacker to cause a denial-of-service

CVE-2020-6625 HIGH POC
7.1 Jan 09

jhead through 3.04 has a heap-based buffer over-read in Get32s when called from ProcessGpsInfo in gpsinfo.c. Rated high

CVE-2020-6624 HIGH POC
7.1 Jan 09

jhead through 3.04 has a heap-based buffer over-read in process_DQT in jpgqguess.c. Rated high severity (CVSS 7.1), this

CVE-2019-19035 MEDIUM POC
5.5 Nov 17

jhead 3.03 is affected by: heap-based buffer over-read. Rated medium severity (CVSS 5.5), this vulnerability is no authe

CVE-2019-1010302 MEDIUM POC
5.5 Jul 15

jhead 3.03 is affected by: Incorrect Access Control. Rated medium severity (CVSS 5.5), this vulnerability is no authenti

CVE-2019-1010301 MEDIUM POC
5.5 Jul 15

jhead 3.03 is affected by: Buffer Overflow. Rated medium severity (CVSS 5.5), this vulnerability is no authentication re

CVE-2026-90682 LOW POC
1.9 Sep 14

Heap-based buffer overflow in jhead up to 3.3 allows a local attacker with low privileges to corrupt process memory by s

CVE-2026-90681 LOW POC
1.9 Sep 14

Out-of-bounds read in jhead's EXIF parser crashes the application when processing a crafted JPEG file. The Get16u() func

CVE-2018-6612 MEDIUM
5.5 Feb 04

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy