CVE-2012-2806: Heap-based buffer overflow in the get_sos function in jdmarker.c in libjpeg-turbo 1.2.0 allows remote attacker
CVE-2012-2806 is a high-severity flaw (CVSS 8.8) affecting libjpeg-turbo. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Heap-based buffer overflow in the get_sos function in jdmarker.c in libjpeg-turbo 1.2.0 allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a large component count in the header of a JPEG image.
Why this priority
- High severity
- EPSS top 8%: very likely to be exploited
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 4.8% (top 8%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2012-08-13 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · 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-2012-2806?
libjpeg-turbo: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2012-2806 being exploited?
CVE-2012-2806 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-2012-2806 affect?
CVE-2012-2806 affects libjpeg-turbo. Severity is high (CVSS 8.8). Heap-based buffer overflow in the get_sos function in jdmarker.c in libjpeg-turbo 1.2.0 allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a large component count in the header o
How urgent is CVE-2012-2806?
Priority 54/100. High severity; EPSS top 8%: very likely to be exploited
Related CVEs
- CVE-2023-2804 MEDIUM 6.5 DOWNGRADE A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function
- CVE-2021-46822 MEDIUM 5.5 UPGRADE The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM f
- CVE-2021-29390 HIGH 7.1 DOWNGRADE MITIGATE libjpeg-turbo version 2.0.90 has a heap-based buffer over-read (2 bytes) in decompress_smooth_data in jdcoefct
- CVE-2021-20205 MEDIUM 6.5 DOWNGRADE MITIGATE Libjpeg-turbo versions 2.0.91 and 2.0.90 is vulnerable to a denial of service vulnerability caused by a divide
- CVE-2020-35538 MEDIUM 5.5 DOWNGRADE A crafted input file could cause a null pointer dereference in jcopy_sample_rows() when processed by libjpeg-t