Vulnerability RUSTSEC-2022-0022

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
4 years ago
May 10, 2022 at 12:00 PM UTC
Parser creates invalid uninitialized value
0.0.1 - 0.12.36 and 0.13.0 - 0.14.11
0.0.1 - 0.12.36 and 0.13.0 - 0.14.11

Summary

Parser creates invalid uninitialized value

Details

Affected versions of this crate called mem::uninitialized() in the HTTP1 parser to create values of type httparse::Header (from the httparse crate). This is unsound, since Header contains references and thus must be non-null.

The flaw was corrected by avoiding the use of mem::uninitialized(), using MaybeUninit instead.

Impacted packages

Timeline

Published
4 years ago
May 10, 2022 at 12:00 PM UTC
Fixed (0.14.12)
5 years ago
August 24, 2021 at 11:25 PM UTC
Last Modified
2 years ago
November 08, 2023 at 04:18 AM UTC