PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2021-3496: 
NixOS vulnerability analysis and mitigation

Overview

A heap-based buffer overflow vulnerability was discovered in jhead version 3.06 in the Get16u() function within exif.c when processing a crafted file. The vulnerability was assigned CVE-2021-3496 and was reported on April 13, 2021 (RedHat Bugzilla, NVD).

Technical details

The vulnerability is a heap-based buffer overflow that occurs in the Get16u() function within exif.c when processing specially crafted files. The issue was discovered using AddressSanitizer, which detected a heap-buffer-overflow READ of size 1 at a specific memory address. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could allow an attacker to cause a heap-based buffer overflow by processing a specially crafted file, potentially leading to denial of service or arbitrary code execution. The vulnerability affects the confidentiality, integrity, and availability of the system with high impact ratings (NVD).

Exploitability

The vulnerability requires local access and user interaction to exploit, as indicated by the CVSS vector. A proof-of-concept exploit has been documented that demonstrates the buffer overflow using a crafted JPEG file (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in jhead version 3.06.0.1. Users are advised to upgrade to this version or later. Various distributions have released patches for their respective packages, including Gentoo which addressed this in GLSA 202210-17 (Gentoo Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Arch Linux

Fixed

rolling

jhead: 3.06.0.1-1

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-112940HIGH7.1
  • Python logoPython
  • py3-filelock
NoYesOct 20, 2026
CVE-2026-112937MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112936MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112939MEDIUM4.7
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112941LOW3.3
  • Python logoPython
  • filelock
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management