CVE-2022-35166: libjpeg commit 842c7ba was discovered to contain an infinite loop via the component JPEG::ReadInternal.
CVE-2022-35166 is a medium-severity flaw (CVSS 5.5) affecting libjpeg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
libjpeg commit 842c7ba was discovered to contain an infinite loop via the component JPEG::ReadInternal.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 78%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2022-08-18 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · 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-2022-35166?
libjpeg: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-35166 being exploited?
CVE-2022-35166 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-2022-35166 affect?
CVE-2022-35166 affects libjpeg. Severity is medium (CVSS 5.5). libjpeg commit 842c7ba was discovered to contain an infinite loop via the component JPEG::ReadInternal.
How urgent is CVE-2022-35166?
Priority 30/100. Public exploit reference
Related CVEs
- CVE-2023-37837 MEDIUM 6.5 UPGRADE libjpeg commit db33a6e was discovered to contain a heap buffer overflow via LineBitmapRequester::EncodeRegion
- CVE-2023-37836 MEDIUM 6.5 UPGRADE libjpeg commit db33a6e was discovered to contain a reachable assertion via BitMapHook::BitMapHook at bitmaphoo
- CVE-2022-37770 MEDIUM 6.5 MITIGATE libjpeg commit 281daa9 was discovered to contain a segmentation fault via LineMerger::GetNextLowpassLine at li
- CVE-2022-37769 MEDIUM 6.5 MITIGATE libjpeg commit 281daa9 was discovered to contain a segmentation fault via HuffmanDecoder::Get at huffmandecode
- CVE-2022-37768 HIGH 7.5 MITIGATE libjpeg commit 281daa9 was discovered to contain an infinite loop via the component Frame::ParseTrailer.