​
DirectorySecurity Advisories
Sign In
Security Advisories

CGA-4fhf-98hv-qppq

Published

Last updated

https://images.chainguard.dev/security/CGA-4fhf-98hv-qppq
Package

zola

Latest Update
Fixed
Fixed Version

0.19.2-r1

Aliases
  • GHSA-xrv3-jmcp-374j

Severity

6.2

Medium

CVSS V3

Summary

zerovec incorrectly uses #[repr(packed)]

Description

The affected versions make unsafe memory accesses under the assumption that #[repr(packed)] has a guaranteed field order.

The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts reordering fields of #[repr(packed)] structs, leading to illegal memory accesses.

The patched versions 0.9.7 and 0.10.4 use #[repr(C, packed)], which guarantees field order.

References

  • https://github.com/advisories/GHSA-xrv3-jmcp-374j

Updates


Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2024 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard Images