Every CVE Search/ Get API key

CVE-2021-28277

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer...

7.8 HighFix available

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.87%Unchanged since Mar 24, 2022
90%50%10%1%

What each source reports

NVD Score used 7.8

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
CVE-2021-28277
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
CVE-2021-28277
Updated
2026-11-02
EUVDEUVD-2021-14966 No score

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
EUVD-2021-14966
Updated
2026-11-03
GitHub AdvisoriesGHSA-95g4-8wpg-6c5r 7.8

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer...

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
GHSA-95g4-8wpg-6c5r
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSV 7.8

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
CVE-2021-28277
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-28277 7.8

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
DEBIAN-CVE-2021-28277
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-28277 7.8

A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.

Record
UBUNTU-CVE-2021-28277
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUSN-6110-1 No score

Jhead vulnerabilities

It was discovered that Jhead did not properly handle certain crafted Canon images when processing them. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-3496)

It was discovered that Jhead did not properly handle certain crafted images when printing Canon-specific information. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 20.04. (CVE-2021-28275)

It was discovered that Jhead did not properly handle certain crafted images when removing unknown sections. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-28277)

Kyle Brown discovered that Jhead did not properly handle certain crafted images when editing their comments. An attacker could possibly use this to crash Jhead, resulting in a denial of service. (LP: #2020068)

Record
USN-6110-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
jhead
Debian:12
before 1:3.06.0.1-2
1:3.06.0.1-2
jhead
Debian:13
before 1:3.06.0.1-2
1:3.06.0.1-2
jhead
Debian:14
before 1:3.06.0.1-2
1:3.06.0.1-2
jhead
Ubuntu:Pro:14.04:LTS
before 1:2.97-1+deb8u2ubuntu0.1~esm3, plus listed versions
1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm11:2.97-1+deb8u2ubuntu0.1~esm2
1:2.97-1+deb8u2ubuntu0.1~esm3
jhead
Ubuntu:Pro:16.04:LTS
before 1:3.00-4+deb9u1ubuntu0.1~esm3, plus listed versions
1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm11:3.00-4+deb9u1ubuntu0.1~esm2
1:3.00-4+deb9u1ubuntu0.1~esm3
jhead
Ubuntu:Pro:18.04:LTS
before 1:3.00-8~ubuntu0.2+esm1, plus listed versions
1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.11:3.00-8~ubuntu0.2
1:3.00-8~ubuntu0.2+esm1
jhead
Ubuntu:Pro:20.04:LTS
before 1:3.04-1ubuntu0.2+esm1, plus listed versions
1:3.03-31:3.04-11:3.04-1ubuntu0.11:3.04-1ubuntu0.2
1:3.04-1ubuntu0.2+esm1
jhead
Ubuntu:Pro:14.04:LTS
From an advisory covering 3 CVEs
before 1:2.97-1+deb8u2ubuntu0.1~esm3, plus listed versions
1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm11:2.97-1+deb8u2ubuntu0.1~esm2
1:2.97-1+deb8u2ubuntu0.1~esm3
jhead
Ubuntu:Pro:16.04:LTS
From an advisory covering 3 CVEs
before 1:3.00-4+deb9u1ubuntu0.1~esm3, plus listed versions
1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm11:3.00-4+deb9u1ubuntu0.1~esm2
1:3.00-4+deb9u1ubuntu0.1~esm3
jhead
Ubuntu:Pro:18.04:LTS
From an advisory covering 3 CVEs
before 1:3.00-8~ubuntu0.2+esm1, plus listed versions
1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.11:3.00-8~ubuntu0.2
1:3.00-8~ubuntu0.2+esm1
jhead
Ubuntu:Pro:20.04:LTS
From an advisory covering 3 CVEs
before 1:3.04-1ubuntu0.2+esm1, plus listed versions
1:3.03-31:3.04-11:3.04-1ubuntu0.11:3.04-1ubuntu0.2
1:3.04-1ubuntu0.2+esm1
jhead
Ubuntu:Pro:22.04:LTS
From an advisory covering 3 CVEs
before 1:3.06.0.1-2ubuntu0.22.04.1+esm1, plus listed versions
1:3.04-61:3.06.0.1-21:3.06.0.1-2ubuntu0.22.04.1
1:3.06.0.1-2ubuntu0.22.04.1+esm1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-28277 is a high vulnerability (CVSS 7.8) in Jhead Project Jhead, published March 23, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.87%, the 58th percentile. Fixed in jhead 1:3.06.0.1-2.

References

Show 6 moreShow less
MoveEnter Open