CVE-2026-5318
published medium CVSS 4.0 · 5.3LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | LibRaw0.1 (affected) · 0.2 (affected) · 0.3 (affected) · 0.4 (affected) · 0.5 (affected) · 0.6 (affected) · 0.7 (affected) · 0.8 (affected) · 0.9 (affected) · 0.10 (affected) · 0.11 (affected) · 0.12 (affected) · 0.13 (affected) · 0.14 (affected) · 0.15 (affected) · 0.16 (affected) · 0.17 (affected) · 0.18 (affected) · 0.19 (affected) · 0.20 (affected) · 0.21 (affected) · 0.22.0 (affected) · 0.22.1 (unaffected) | Version-specific | Not stated | VulDB |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.3 | medium | VulDB · cna | 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 | — |
| 3.0 | 4.3 | medium | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C | — |
| 2.0 | 5.0 | medium | VulDB · cna | AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | LibRaw | 0.1 (affected)0.2 (affected)0.3 (affected)0.4 (affected)0.5 (affected)0.6 (affected)0.7 (affected)0.8 (affected)0.9 (affected)0.10 (affected)0.11 (affected)0.12 (affected)0.13 (affected)0.14 (affected)0.15 (affected)0.16 (affected)0.17 (affected)0.18 (affected)0.19 (affected)0.20 (affected)0.21 (affected)0.22.0 (affected)0.22.1 (unaffected) | VulDB · cna |
Weaknesses
2- CWE-787 Out-of-bounds Write
- CWE-119 Memory Corruption
References
9- https://github.com/LibRaw/LibRaw/
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
- https://github.com/LibRaw/LibRaw/issues/794
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
- Submit #780538 | LibRaw 0.22.0 Out-of-bounds Write https://vuldb.com/submit/780538
- VDB-354650 | LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write https://vuldb.com/vuln/354650
- VDB-354650 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/vuln/354650/cti
Provider assertions
2VulDB · cna
LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a24fad8c2ec44e0f352ea8bac0ac4ffea07b060fe77f7606d769fc1c5abd09fb
- Ingested
- 23 Sep 2026, 09:23:13 UTC
- Source record
- Official CVE record