Read the docs
TI-2022-26646 Aliases GHSA-v8gq-5grq-9728

mozjpeg DecompressScanlines::read_scanlines is Unsound

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

This issue and vector is similar to [RUSTSEC-2020-0029] of `rgb` crate which `mozjpeg` depends on. Affected versions of `mozjpeg` crate allow creating instances of any type `T` from bytes, and do not correctly constrain `T` to the types for which it is safe to do so. Examples of safety violation possible for a type `T`: * `T` contains a reference type, and it constructs a pointer to an invalid, arbitrary memory address. * `T` requires a safety and/or validity invariant for its construction that may be violated. The issue was fixed in 0.8.19 by using safer types and involving `rgb` dependency bump. [RUSTSEC-2020-0029]: https://rustsec.org/advisories/RUSTSEC-2020-0029.html

Why it matters now

Fix Fixed mozjpeg (crates.io): 0.8.19

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mozjpeg (crates.io)before 0.8.190.8.19Patch availableGHSA-v8gq-5grq-9728
  • mozjpeg (crates.io) Vendor— Affected before 0.8.19 Fixed in 0.8.19 Patch available GHSA-v8gq-5grq-9728

Remediation

  • Fix · GHSA-v8gq-5grq-9728 mozjpeg (crates.io) Fixed in 0.8.19 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-v8gq-5grq-9728

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences