-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCVE-2018-16873.json
381 lines (381 loc) · 13.5 KB
/
CVE-2018-16873.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
{
"id": "CVE-2018-16873",
"sourceIdentifier": "[email protected]",
"vulnStatus": "Modified",
"published": "2018-12-14T14:29:00.227000",
"lastModified": "2023-11-07T02:53:57.003000",
"evaluatorComment": null,
"evaluatorSolution": null,
"evaluatorImpact": null,
"cisaExploitAdd": null,
"cisaActionDue": null,
"cisaRequiredAction": null,
"cisaVulnerabilityName": null,
"descriptions": [
{
"lang": "en",
"value": "In Go before 1.10.6 and 1.11.x before 1.11.3, the \"go get\" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). Using custom domains, it's possible to arrange things so that a Git repository is cloned to a folder named \".git\" by using a vanity import path that ends with \"/.git\". If the Git repository root contains a \"HEAD\" file, a \"config\" file, an \"objects\" directory, a \"refs\" directory, with some work to ensure the proper ordering of operations, \"go get -u\" can be tricked into considering the parent directory as a repository root, and running Git commands on it. That will use the \"config\" file in the original Git repository root for its configuration, and if that config file contains malicious commands, they will execute on the system running \"go get -u\"."
},
{
"lang": "es",
"value": "En Go en versiones anteriores a la 1.10.6 y versiones 1.11.x anteriores a la 1.11.3, el comando \"go get\" es vulnerable a la ejecución remota de código cuando se ejecuta con la marca -u y la ruta de importación de un paquete Go malicioso, o un paquete que lo importa directa o indirectamente. Específicamente, solo es vulnerable en modo GOPATH, pero no en modo módulo (la diferencia está documentada en https://golang.org/cmd/go/#hdr-Module_aware_go_get). Mediante el uso de dominios personalizados, es posible organizar todo para que un repositorio de Git se clone a una carpeta llamada \".git\" mediante una ruta de importación vanity que termina en \"/.git\". Si el root del repositorio Git contiene un archivo \"HEAD\", un archivo \"config\", un directorio \"objects\" y un directorio \"refs\", con algo de trabajo para asegurar el orden correcto de las operaciones, se puede engañar a \"go get -u\" para que considere que el directorio padre es un root del repositorio y ejecute comandos Git en él. Eso empleará el archivo \"config\" en el root del repositorio Git original, y si ese archivo de configuración contiene comandos maliciosos, se ejecutarán en el sistema con \"go get -u\"."
}
],
"references": [
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "http://www.securityfocus.com/bid/106226",
"source": "[email protected]",
"tags": [
"Third Party Advisory",
"VDB Entry"
]
},
{
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16873",
"source": "[email protected]",
"tags": [
"Issue Tracking",
"Third Party Advisory"
]
},
{
"url": "https://groups.google.com/forum/?pli=1#%21topic/golang-announce/Kw31K8G7Fi0",
"source": "[email protected]",
"tags": null
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html",
"source": "[email protected]",
"tags": [
"Mailing List",
"Third Party Advisory"
]
},
{
"url": "https://security.gentoo.org/glsa/201812-09",
"source": "[email protected]",
"tags": [
"Mitigation",
"Third Party Advisory"
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"exploitCodeMaturity": null,
"remediationLevel": null,
"reportConfidence": null,
"temporalScore": null,
"temporalSeverity": null,
"confidentialityRequirement": null,
"integrityRequirement": null,
"availabilityRequirement": null,
"modifiedAttackVector": null,
"modifiedAttackComplexity": null,
"modifiedPrivilegesRequired": null,
"modifiedUserInteraction": null,
"modifiedScope": null,
"modifiedConfidentialityImpact": null,
"modifiedIntegrityImpact": null,
"modifiedAvailabilityImpact": null,
"environmentalScore": null,
"environmentalSeverity": null
},
"baseSeverity": null,
"exploitabilityScore": 2.2,
"impactScore": 5.9,
"acInsufInfo": null,
"obtainAllPrivilege": null,
"obtainUserPrivilege": null,
"obtainOtherPrivilege": null,
"userInteractionRequired": null
}
],
"cvssMetricV30": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.0",
"vectorString": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"exploitCodeMaturity": null,
"remediationLevel": null,
"reportConfidence": null,
"temporalScore": null,
"temporalSeverity": null,
"confidentialityRequirement": null,
"integrityRequirement": null,
"availabilityRequirement": null,
"modifiedAttackVector": null,
"modifiedAttackComplexity": null,
"modifiedPrivilegesRequired": null,
"modifiedUserInteraction": null,
"modifiedScope": null,
"modifiedConfidentialityImpact": null,
"modifiedIntegrityImpact": null,
"modifiedAvailabilityImpact": null,
"environmentalScore": null,
"environmentalSeverity": null
},
"baseSeverity": null,
"exploitabilityScore": 1.6,
"impactScore": 5.9,
"acInsufInfo": null,
"obtainAllPrivilege": null,
"obtainUserPrivilege": null,
"obtainOtherPrivilege": null,
"userInteractionRequired": null
}
],
"cvssMetricV2": [
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "2.0",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"accessVector": "NETWORK",
"accessComplexity": "MEDIUM",
"authentication": "NONE",
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"availabilityImpact": "PARTIAL",
"baseScore": 6.8,
"exploitability": null,
"remediationLevel": null,
"reportConfidence": null,
"temporalScore": null,
"collateralDamagePotential": null,
"targetDistribution": null,
"confidentialityRequirement": null,
"integrityRequirement": null,
"availabilityRequirement": null,
"environmentalScore": null
},
"baseSeverity": "MEDIUM",
"exploitabilityScore": 8.6,
"impactScore": 6.4,
"acInsufInfo": false,
"obtainAllPrivilege": false,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-20"
}
]
},
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-20"
}
]
}
],
"configurations": [
{
"operator": null,
"negate": null,
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
"matchCriteriaId": "49A979C3-1002-477D-9874-FD5E0D1681D4",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": "1.10.6",
"versionEndIncluding": null
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
"matchCriteriaId": "7F67C474-BD21-4A3E-9F35-3D36BB6F09F4",
"versionStartExcluding": null,
"versionStartIncluding": "1.11.0",
"versionEndExcluding": "1.11.3",
"versionEndIncluding": null
}
]
}
]
},
{
"operator": null,
"negate": null,
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:opensuse:backports_sle:15.0:-:*:*:*:*:*:*",
"matchCriteriaId": "D83DA865-E4A6-4FBF-AA1B-A969EBA6B2AD",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*",
"matchCriteriaId": "F1E78106-58E6-4D59-990F-75DA575BFAD9",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*",
"matchCriteriaId": "B620311B-34A3-48A6-82DF-6F078D7A4493",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:opensuse:leap:42.3:*:*:*:*:*:*:*",
"matchCriteriaId": "5F65DAB0-3DAD-49FF-BC73-3581CC3D5BF3",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:suse:linux_enterprise_server:12:-:*:*:*:*:*:*",
"matchCriteriaId": "15FC9014-BD85-4382-9D04-C0703E901D7A",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
}
]
}
]
},
{
"operator": null,
"negate": null,
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
"matchCriteriaId": "DEECE5FC-CACF-4496-A3E7-164736409252",
"versionStartExcluding": null,
"versionStartIncluding": null,
"versionEndExcluding": null,
"versionEndIncluding": null
}
]
}
]
}
],
"vendorComments": null
}