-
Notifications
You must be signed in to change notification settings - Fork 368
/
Copy pathGHSA-2grh-hm3w-w7hv.json
147 lines (147 loc) · 3.24 KB
/
GHSA-2grh-hm3w-w7hv.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"schema_version": "1.4.0",
"id": "GHSA-2grh-hm3w-w7hv",
"modified": "2023-06-13T22:08:56Z",
"published": "2021-08-25T20:55:51Z",
"aliases": [
"CVE-2021-38191"
],
"summary": "Race condition in tokio",
"details": "When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "tokio"
},
"ecosystem_specific": {
"affected_functions": [
"tokio::task::JoinHandle::abort"
]
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.8.0"
},
{
"fixed": "1.8.1"
}
]
}
]
},
{
"package": {
"ecosystem": "crates.io",
"name": "tokio"
},
"ecosystem_specific": {
"affected_functions": [
"tokio::task::JoinHandle::abort"
]
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.7.0"
},
{
"fixed": "1.7.2"
}
]
}
]
},
{
"package": {
"ecosystem": "crates.io",
"name": "tokio"
},
"ecosystem_specific": {
"affected_functions": [
"tokio::task::JoinHandle::abort"
]
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.6.0"
},
{
"fixed": "1.6.3"
}
]
}
]
},
{
"package": {
"ecosystem": "crates.io",
"name": "tokio"
},
"ecosystem_specific": {
"affected_functions": [
"tokio::task::JoinHandle::abort"
]
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.3.0"
},
{
"fixed": "1.5.1"
}
]
}
]
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38191"
},
{
"type": "WEB",
"url": "https://github.com/tokio-rs/tokio/issues/3929"
},
{
"type": "PACKAGE",
"url": "https://github.com/tokio-rs/tokio"
},
{
"type": "WEB",
"url": "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0072.html"
}
],
"database_specific": {
"cwe_ids": [
"CWE-362",
"CWE-366"
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2021-08-18T21:30:23Z",
"nvd_published_at": "2021-08-08T06:15:00Z"
}
}