{"schemaVersion":3,"id":"CVE-2026-5318","aliases":["UBUNTU-CVE-2026-5318","DEBIAN-CVE-2026-5318"],"status":"published","duplicateOf":null,"title":"LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write","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.","dates":{"published":"2026-04-02T01:45:12.421Z","modified":"2026-04-07T11:26:57.754Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":4.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":7.2,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.1,"severity":"low","vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00784,"percentile":0.55569,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.15500000000000003,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00629},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00784,"percentile":0.55569}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00629,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00784,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00784,"percentile":0.55569}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_BINIAMF_POCS","name":"Pocs","source":"github","url":"https://github.com/biniamf/pocs/tree/main/janet-debug-janet-doframe-env-data-oobread","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_5C1DF4C97FB52922","name":"Exploit Reference (vuldb.com)","source":"reference","url":"https://vuldb.com/submit/780538","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"libraw","name":"libraw","label":"libraw","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libraw","purlType":"deb","versions":[{"text":"< 0.22.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"darktable","name":"darktable","label":"darktable","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/darktable","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"dcraw","name":"dcraw","label":"dcraw","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/dcraw","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"digikam","name":"digikam","label":"digikam","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/digikam","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"exactimage","name":"exactimage","label":"exactimage","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/exactimage","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"kodi","name":"kodi","label":"kodi","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/kodi","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rawtherapee","name":"rawtherapee","label":"rawtherapee","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rawtherapee","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ufraw","name":"ufraw","label":"ufraw","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ufraw","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"libraw","product":"libraw","name":"LibRaw","label":"libraw","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.22.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.1","eol":null,"hubHref":"/vendor/libraw/libraw"}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/vuln/354650","label":"vuldb.com/vuln/354650","hostname":"vuldb.com","tags":["VDB Entry","Technical Description","REPORT","Third Party Advisory"]},{"url":"https://vuldb.com/vuln/354650/cti","label":"vuldb.com/vuln/354650/cti","hostname":"vuldb.com","tags":["Signature","Permissions Required","REPORT","VDB Entry"]},{"url":"https://vuldb.com/submit/780538","label":"vuldb.com/submit/780538","hostname":"vuldb.com","tags":["Third Party Advisory","REPORT","Exploit","VDB Entry"]},{"url":"https://github.com/LibRaw/LibRaw/issues/794","label":"github.com/LibRaw/LibRaw/issues/794","hostname":"github.com","tags":["Issue Tracking","REPORT"]},{"url":"https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499","label":"github.com/LibRaw/LibRaw/issues/794","hostname":"github.com","tags":["Issue Tracking","REPORT"]},{"url":"https://github.com/biniamf/pocs/tree/main/libraw_lljpeg","label":"github.com/biniamf/pocs/tree/main/libraw_lljpeg","hostname":"github.com","tags":["Exploit","REPORT","Third Party Advisory"]},{"url":"https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995","label":"github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://github.com/LibRaw/LibRaw/releases/tag/0.22.1","label":"github.com/LibRaw/LibRaw/releases/tag/0.22.1","hostname":"github.com","tags":["Patch","Product","Release Notes"]},{"url":"https://github.com/LibRaw/LibRaw/","label":"github.com/LibRaw/LibRaw/","hostname":"github.com","tags":["Product","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-5318","label":"ubuntu.com/security/CVE-2026-5318","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5318","label":"www.cve.org/CVERecord?id=CVE-2026-5318","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-5318","label":"security-tracker.debian.org/tracker/CVE-2026-5318","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-02T01:45:12.421Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-07T11:26:57.754Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T19:22:06.075Z","stale":false,"partial":false}}