GHSA-66m8-c62j-h6v5

Suggest an improvement
Source
https://github.com/advisories/GHSA-66m8-c62j-h6v5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-66m8-c62j-h6v5/GHSA-66m8-c62j-h6v5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-66m8-c62j-h6v5
Published
2026-07-02T20:45:10Z
Modified
2026-07-02T21:00:16Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jxl-oxide: `FrameBuffer::new` creates out-of-bounds slices on overflow
Details

Summary

jxl-oxide exposes a public safe API that can construct an undersized FrameBuffer due to unchecked usize multiplication, which immediately trigger panic while initializing the buffer in normal decoding path.

Additionally, calling the safe grouped buffer accessors afterward can create invalid oversized slices from a much smaller allocation, causing undefined behavior; however normal decoding path never reaches UB, because these methods are never used within jxl-oxide.

Impact

On 32-bit platforms this can cause panic by accessing out-of-range indices, making it a DoS vulnerability.

Database specific
{
    "cwe_ids":  [
        "CWE-131",
        "CWE-190"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-02T20:45:10Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / jxl-oxide

Package

Name
jxl-oxide
View open source insights on deps.dev
Purl
pkg:cargo/jxl-oxide

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.12.6

Database specific

last_known_affected_version_range
"<= 0.12.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-66m8-c62j-h6v5/GHSA-66m8-c62j-h6v5.json"