0.0
NA
CVE-2020-26209
Jhead Heap-Based Buffer Overflow
Description

### Impact [fuzzer&poc1.zip](https://github.com/Matthias-Wandel/jhead/files/5426671/fuzzer.poc1.zip) ``` fstark@fstark-virtual-machine:~/jhead-master$ ./jhead afl_collect_output_dir/fuzz1\:id\:000013\,sig\:06\,src\:000263\,time\:295896\,op\:arith8\,pos\:8\,val\:+15 ================================================================= ==4212==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000eff4 at pc 0x0000004bd123 bp 0x7ffd6e2fdb80 sp 0x7ffd6e2fdb70 READ of size 1 at 0x60200000eff4 thread T0 #0 0x4bd122 in process_COM /home/fstark/jhead-master/jpgfile.c:51 #1 0x4be667 in ReadJpegSections /home/fstark/jhead-master/jpgfile.c:240 #2 0x4bfbad in ReadJpegSections /home/fstark/jhead-master/jpgfile.c:125 #3 0x4bfbad in ReadJpegFile /home/fstark/jhead-master/jpgfile.c:378 #4 0x4b71bb in ProcessFile /home/fstark/jhead-master/jhead.c:905 #5 0x4066dc in main /home/fstark/jhead-master/jhead.c:1756 #6 0x7f3dc850083f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f) #7 0x40a1e8 in _start (/home/fstark/jhead-master/jhead+0x40a1e8) 0x60200000eff4 is located 0 bytes to the right of 4-byte region [0x60200000eff0,0x60200000eff4) allocated by thread T0 here: #0 0x485392 in malloc (/home/fstark/jhead-master/jhead+0x485392) #1 0x4bd558 in ReadJpegSections /home/fstark/jhead-master/jpgfile.c:172 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/fstark/jhead-master/jpgfile.c:51 process_COM Shadow bytes around the buggy address: 0x0c047fff9da0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9db0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c047fff9df0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[04]fa 0x0c047fff9e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9e20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9e30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff9e40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe ==4212==ABORTING ``` ### Patches Fixed by 4827ed3 https://github.com/Matthias-Wandel/jhead/commit/4827ed31c226dc5ed93603bd649e0e387a1778da ### References https://github.com/Matthias-Wandel/jhead/issues/8 https://github.com/Matthias-Wandel/jhead/commit/4827ed31c226dc5ed93603bd649e0e387a1778da

INFO

Published Date :

Oct. 31, 2020, 3:04 a.m.

Last Modified :

Nov. 6, 2020, 4:42 p.m.

Remotely Exploit :

No

Source :

github-security-advisories
Affected Products

The following products are affected by CVE-2020-26209 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Jhead_project jhead
Solution
Heap buffer overflow in jpgfile.c due to improper handling of COM markers. Apply the vendor patch.
  • Update to the latest version of the software.
  • Apply the vendor-provided patch.
  • Recompile the source code.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2020-26209.

URL Resource
https://github.com/Fstark-prog/jhead/security/advisories/GHSA-xh27-xwgj-gqw2
https://nvd.nist.gov/vuln/detail/CVE-2020-26209
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2020-26209 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2020-26209 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2020-26209 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.