High
Security advisory
Buffer Overflow vulnerability in jpgfile.c in Matthias-Wandel jhead version 3.04, allows local attackers to execute arbitrary code and cause a denial of service (DoS).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-28840
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:36 UTC · Revision 1
Source evidence
Buffer Overflow vulnerability in jpgfile.c in Matthias-Wandel jhead version 3.04, allows local attackers to execute arbitrary code and cause a denial of service (DoS).
osv:CVE-2020-28840
Complete source record
{
"id": "410d3fb42643c143621db95d11da26f399310d5c197b1b21ff11c8f1def98506",
"url": "https://osv.dev/vulnerability/CVE-2020-28840",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-28840",
"summary": "Buffer Overflow vulnerability in jpgfile.c in Matthias-Wandel jhead version 3.04, allows local attackers to execute arbitrary code and cause a denial of service (DoS).",
"evidence": "osv:CVE-2020-28840",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-28840",
"aliases": [
"CVE-2020-28840",
"GHSA-xh27-xwgj-gqw2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/matthias-wandel/jhead",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4827ed31c226dc5ed93603bd649e0e387a1778da"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "4827ed31c226dc5ed93603bd649e0e387a1778da"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-28840.json",
"vanir_signatures": [
{
"id": "CVE-2020-28840-2886e8f4",
"digest": {
"threshold": 0.9,
"line_hashes": [
"22708694695867634931681004538540366643",
"11751138034829950508830305760280444044",
"165457676957557909118827148440781991284",
"34090575304609549547297553678404706818"
]
},
"source": "https://github.com/matthias-wandel/jhead/commit/4827ed31c226dc5ed93603bd649e0e387a1778da",
"target": {
"file": "jpgfile.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-28840-31077d1a",
"digest": {
"length": 576,
"function_hash": "67584776302249895972607559024694253211"
},
"source": "https://github.com/matthias-wandel/jhead/commit/4827ed31c226dc5ed93603bd649e0e387a1778da",
"target": {
"file": "jpgfile.c",
"function": "process_COM"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:59:14Z"
}
}
],
"modified": "2026-10-20T13:59:14.336032187Z",
"provider": "osv",
"references": [
"https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1900820",
"https://github.com/Matthias-Wandel/jhead/commit/4827ed31c226dc5ed93603bd649e0e387a1778da",
"https://github.com/Matthias-Wandel/jhead/issues/8",
"https://github.com/F-ZhaoYang/jhead/security/advisories/GHSA-xh27-xwgj-gqw2"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:matthiaswandel:jhead:*:*:*:*:*:*:*:*"
],
"vendor_product": "matthiaswandel:jhead",
"extracted_events": [
{
"range": [
{
"fixed": "3.04"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-28840",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388472,
"published_at": "2023-08-11T14:15:11.103+00:00"
}