Buffer overflow in Jhead Project
CVE-2022-28550
Matthias-Wandel/jhead jhead 3.06 is vulnerable to Buffer Overflow via shellescape(), jhead.c, jhead. jhead copies strings to a stack buffer when it detects a &i or &o. However, jhead does not check the boundary of the stack buffer. As a result, there will be a stack buffer overflow problem when multiple `&i` or `&o` are given.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.010, 64.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Jhead Project — versions 3.06
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, DiRaltvein/memory-corruption-examples, Marsman1996/pocs). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/Matthias-Wandel/jhead/issues/51 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- github.com/Matthias-Wandel/jhead/commit/64894dbc7d8e1e232e85f1cab25c64290b2fc167 (Patch)