CVE-2026-5318
LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
CVSS Score
4.3
EPSS Score
0.0%
EPSS Percentile
3th
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.
| CWE | CWE-787 CWE-119 |
| Vendor | n/a |
| Product | libraw |
| Published | Apr 2, 2026 |
| Last Updated | Apr 7, 2026 |
Stay Ahead of the Next One
Get instant alerts for n/a libraw
Be the first to know when new medium vulnerabilities affecting n/a libraw are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Affected Versions
n/a / LibRaw
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22.0
References
vuldb.com: https://vuldb.com/vuln/354650 vuldb.com: https://vuldb.com/vuln/354650/cti vuldb.com: https://vuldb.com/submit/780538 github.com: https://github.com/LibRaw/LibRaw/issues/794 github.com: https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499 github.com: https://github.com/biniamf/pocs/tree/main/libraw_lljpeg github.com: https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995 github.com: https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 github.com: https://github.com/LibRaw/LibRaw/
Credits
๐ biniam (VulDB User)