CVE-2021-28277
NixOS vulnerability analysis and mitigation

Overview

A Heap-based Buffer Overflow vulnerability exists in jhead versions 3.04 and 3.05, specifically in the RemoveUnknownSections function within jpgfile.c. The vulnerability was discovered in early 2021 and affects the EXIF JPEG header manipulation tool (CVE Mitre, NVD).

Technical details

The vulnerability manifests as a heap-based buffer overflow read operation in the RemoveUnknownSections function of jpgfile.c. The issue was identified through testing with AddressSanitizer, which revealed a buffer overflow when reading 80 bytes beyond the allocated memory region. The vulnerability can be triggered when processing specially crafted JPEG files (GitHub Issue).

Impact

When exploited, this vulnerability could lead to a denial of service condition by causing the application to crash. The issue affects multiple Linux distributions including Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, and 20.04 LTS (Ubuntu Notice).

Exploitability

The vulnerability can be triggered by processing a specially crafted JPEG file through the jhead application with the -purejpg option. A proof of concept has been publicly documented demonstrating the heap buffer overflow condition (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 Linux distributions have released security updates to address this vulnerability. For instance, Ubuntu has released patches for affected versions, and Gentoo recommends upgrading to version 3.06.0.1 or later (Gentoo Advisory, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 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