CVE-2021-28278: A Heap-based Buffer Overflow vulnerability exists in jhead 3.04 and 3.05 via the RemoveSectionType function in
CVE-2021-28278 is a high-severity flaw (CVSS 7.8) affecting jhead. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A Heap-based Buffer Overflow vulnerability exists in jhead 3.04 and 3.05 via the RemoveSectionType function in jpgfile.c.
Why this priority
- High severity
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.9% (top 41%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2022-03-23 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-28278?
jhead: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-28278 being exploited?
CVE-2021-28278 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-28278 affect?
CVE-2021-28278 affects jhead. Severity is high (CVSS 7.8). A Heap-based Buffer Overflow vulnerability exists in jhead 3.04 and 3.05 via the RemoveSectionType function in jpgfile.c.
How urgent is CVE-2021-28278?
Priority 47/100. High severity; Public exploit reference
Related CVEs
- CVE-2025-44906 HIGH 7.8 DOWNGRADE jhead v3.08 was discovered to contain a heap-use-after-free via the ProcessFile function at jhead.c.
- CVE-2022-41751 HIGH 7.8 DOWNGRADE MITIGATE Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then u
- CVE-2022-28550 CRITICAL 9.8 DOWNGRADE Matthias-Wandel/jhead jhead 3.06 is vulnerable to Buffer Overflow via shellescape(), jhead.c, jhead
- CVE-2021-34055 HIGH 7.8 DOWNGRADE MITIGATE jhead 3.06 is vulnerable to Buffer Overflow via exif.c in function Put16u.
- CVE-2021-28277 HIGH 7.8 DOWNGRADE A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via th