CVE-2026-5318
5.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Summary
A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. It is advisable to upgrade the affected component.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | LibRaw | 0.1 | affected |
| n/a | LibRaw | 0.2 | affected |
| n/a | LibRaw | 0.3 | affected |
| n/a | LibRaw | 0.4 | affected |
| n/a | LibRaw | 0.5 | affected |
| n/a | LibRaw | 0.6 | affected |
| n/a | LibRaw | 0.7 | affected |
| n/a | LibRaw | 0.8 | affected |
| n/a | LibRaw | 0.9 | affected |
| n/a | LibRaw | 0.10 | affected |
| n/a | LibRaw | 0.11 | affected |
| n/a | LibRaw | 0.12 | affected |
| n/a | LibRaw | 0.13 | affected |
| n/a | LibRaw | 0.14 | affected |
| n/a | LibRaw | 0.15 | affected |
| n/a | LibRaw | 0.16 | affected |
| n/a | LibRaw | 0.17 | affected |
| n/a | LibRaw | 0.18 | affected |
| n/a | LibRaw | 0.19 | affected |
| n/a | LibRaw | 0.20 | affected |
| n/a | LibRaw | 0.21 | affected |
| n/a | LibRaw | 0.22.0 | affected |
| n/a | LibRaw | 0.22.1 | unaffected |
Weaknesses
- CWE-787: Out-of-bounds Write
- CWE-119: Memory Corruption
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
References
- https://vuldb.com/vuln/354650
- https://vuldb.com/vuln/354650/cti
- https://vuldb.com/submit/780538
- https://github.com/LibRaw/LibRaw/issues/794
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1
- https://github.com/LibRaw/LibRaw/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.