-
Notifications
You must be signed in to change notification settings - Fork 291
/
GHSA-pqwh-c2f3-vxmq.json
62 lines (61 loc) · 2.02 KB
/
GHSA-pqwh-c2f3-vxmq.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
{
"schema_version": "1.4.0",
"id": "GHSA-pqwh-c2f3-vxmq",
"modified": "2023-06-09T19:31:54Z",
"published": "2023-06-09T19:31:54Z",
"aliases": [
"CVE-2021-32742"
],
"summary": "Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash",
"details": "### Impact\nA bug in the `Data.init(base32Encoded:)` function opens up the potential for exposing server memory and/or crashing the server (Denial of Service) for applications where untrusted data can end up in said function. Vapor does not currently use this function itself so this only impact applications that use the impacted function directly or through other dependencies.\n\n### Patches\nThis issue has been patched in 4.47.2.\n\n### Workarounds\nUse an alternative to Vapor's built-in `Data.init(base32Encoded:)`.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Vapor](https://github.com/vapor/vapor)\n* Ask in [Discord](http://vapor.team)",
"severity": [
],
"affected": [
{
"package": {
"ecosystem": "SwiftURL",
"name": "github.com/vapor/vapor"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.47.2"
}
]
}
]
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32742"
},
{
"type": "PACKAGE",
"url": "https://github.com/vapor/vapor"
},
{
"type": "WEB",
"url": "https://github.com/vapor/vapor/releases/tag/4.47.2"
}
],
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2023-06-09T19:31:54Z",
"nvd_published_at": "2021-07-09T14:15:00Z"
}
}