Merge pull request #320 from Qwaz/rocket-1312

Informational advisory for SergioBenitez/Rocket#1312
This commit is contained in:
Sergey "Shnatsel" Davidoff
2020-08-14 17:40:21 +02:00
committed by GitHub

View File

@@ -0,0 +1,20 @@
[advisory]
id = "RUSTSEC-0000-0000"
package = "rocket"
date = "2020-05-27"
informational = "unsound"
title = "`LocalRequest::clone` creates multiple mutable references to the same object"
url = "https://github.com/SergioBenitez/Rocket/issues/1312"
description = """
The affected version of `rocket` contains a `Clone` trait implementation of
`LocalRequest` that reuses the pointer to inner `Request` object.
This causes data race in rare combinations of APIs if the original and the
cloned objects are modified at the same time.
"""
[affected]
functions = { "rocket::local::LocalRequest::clone" = ["< 0.4.5, >= 0.4.0"] }
[versions]
patched = [">= 0.4.5"]
unaffected = ["< 0.4.0"]