Skip to content

Commit 3186724

Browse files
tatianabgopherbot
authored andcommitted
data/reports: review GO-2024-3279
- data/reports/GO-2024-3279.yaml Fixes #3279 Change-Id: I0051eafa5770842c6946624b2a66b20806438b2b Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/635735 Reviewed-by: Zvonimir Pavlinovic <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Tatiana Bradley <[email protected]>
1 parent 3b3d7d4 commit 3186724

File tree

2 files changed

+93
-11
lines changed

2 files changed

+93
-11
lines changed

data/osv/GO-2024-3279.json

+49-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"aliases": [
77
"GHSA-7225-m954-23v7"
88
],
9-
"summary": "ASA-2024-010: cosmossdk.io/math: Mismatched bit-length validation in sdk.Int and sdk.Dec can lead to panic",
10-
"details": "ASA-2024-010: cosmossdk.io/math: Mismatched bit-length validation in sdk.Int and sdk.Dec can lead to panic",
9+
"summary": "Mismatched bit-length validation in can lead to panic in cosmossdk.io/math",
10+
"details": "Mismatched bit-length validation in can lead to panic in cosmossdk.io/math",
1111
"affected": [
1212
{
1313
"package": {
@@ -27,7 +27,51 @@
2727
]
2828
}
2929
],
30-
"ecosystem_specific": {}
30+
"ecosystem_specific": {
31+
"imports": [
32+
{
33+
"path": "cosmossdk.io/math",
34+
"symbols": [
35+
"LegacyDec.Add",
36+
"LegacyDec.AddMut",
37+
"LegacyDec.ApproxRoot",
38+
"LegacyDec.ApproxSqrt",
39+
"LegacyDec.Ceil",
40+
"LegacyDec.ImmutOp",
41+
"LegacyDec.ImmutOpInt",
42+
"LegacyDec.ImmutOpInt64",
43+
"LegacyDec.Mul",
44+
"LegacyDec.MulInt",
45+
"LegacyDec.MulInt64",
46+
"LegacyDec.MulInt64Mut",
47+
"LegacyDec.MulIntMut",
48+
"LegacyDec.MulMut",
49+
"LegacyDec.MulRoundUp",
50+
"LegacyDec.MulRoundUpMut",
51+
"LegacyDec.MulTruncate",
52+
"LegacyDec.MulTruncateMut",
53+
"LegacyDec.Power",
54+
"LegacyDec.PowerMut",
55+
"LegacyDec.Quo",
56+
"LegacyDec.QuoInt",
57+
"LegacyDec.QuoInt64",
58+
"LegacyDec.QuoMut",
59+
"LegacyDec.QuoRoundUp",
60+
"LegacyDec.QuoRoundupMut",
61+
"LegacyDec.QuoTruncate",
62+
"LegacyDec.QuoTruncateMut",
63+
"LegacyDec.Sub",
64+
"LegacyDec.SubMut",
65+
"LegacyDec.Unmarshal",
66+
"LegacyDec.UnmarshalAmino",
67+
"LegacyDec.UnmarshalJSON",
68+
"LegacyDecApproxEq",
69+
"LegacyMustNewDecFromStr",
70+
"LegacyNewDecFromStr"
71+
]
72+
}
73+
]
74+
}
3175
}
3276
],
3377
"references": [
@@ -36,12 +80,12 @@
3680
"url": "https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-7225-m954-23v7"
3781
},
3882
{
39-
"type": "WEB",
83+
"type": "FIX",
4084
"url": "https://github.com/cosmos/cosmos-sdk/commit/c6522a72a45c34897f9fc85d438c0b74d52f8862"
4185
}
4286
],
4387
"database_specific": {
4488
"url": "https://pkg.go.dev/vuln/GO-2024-3279",
45-
"review_status": "UNREVIEWED"
89+
"review_status": "REVIEWED"
4690
}
4791
}

data/reports/GO-2024-3279.yaml

+44-6
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,53 @@ modules:
44
versions:
55
- fixed: 1.4.0
66
vulnerable_at: 1.3.0
7-
summary: |-
8-
ASA-2024-010: cosmossdk.io/math: Mismatched bit-length validation in sdk.Int and
9-
sdk.Dec can lead to panic
7+
packages:
8+
- package: cosmossdk.io/math
9+
symbols:
10+
- LegacyDec.MulIntMut
11+
- LegacyDec.AddMut
12+
- LegacyDec.QuoMut
13+
- LegacyDec.Unmarshal
14+
- LegacyDec.SubMut
15+
- LegacyNewDecFromStr
16+
- LegacyDec.MulMut
17+
- LegacyDec.QuoRoundupMut
18+
- LegacyDec.Ceil
19+
- LegacyDec.MulTruncateMut
20+
- LegacyDec.MulRoundUpMut
21+
- LegacyDec.MulInt64Mut
22+
- LegacyDec.QuoTruncateMut
23+
derived_symbols:
24+
- LegacyDec.Add
25+
- LegacyDec.ApproxRoot
26+
- LegacyDec.ApproxSqrt
27+
- LegacyDec.ImmutOp
28+
- LegacyDec.ImmutOpInt
29+
- LegacyDec.ImmutOpInt64
30+
- LegacyDec.Mul
31+
- LegacyDec.MulInt
32+
- LegacyDec.MulInt64
33+
- LegacyDec.MulRoundUp
34+
- LegacyDec.MulTruncate
35+
- LegacyDec.Power
36+
- LegacyDec.PowerMut
37+
- LegacyDec.Quo
38+
- LegacyDec.QuoInt
39+
- LegacyDec.QuoInt64
40+
- LegacyDec.QuoRoundUp
41+
- LegacyDec.QuoTruncate
42+
- LegacyDec.Sub
43+
- LegacyDec.UnmarshalAmino
44+
- LegacyDec.UnmarshalJSON
45+
- LegacyDecApproxEq
46+
- LegacyMustNewDecFromStr
47+
summary: Mismatched bit-length validation in can lead to panic in cosmossdk.io/math
1048
ghsas:
1149
- GHSA-7225-m954-23v7
1250
references:
1351
- advisory: https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-7225-m954-23v7
14-
- web: https://github.com/cosmos/cosmos-sdk/commit/c6522a72a45c34897f9fc85d438c0b74d52f8862
52+
- fix: https://github.com/cosmos/cosmos-sdk/commit/c6522a72a45c34897f9fc85d438c0b74d52f8862
1553
source:
1654
id: GHSA-7225-m954-23v7
17-
created: 2024-11-21T14:39:42.980234-05:00
18-
review_status: NEEDS_REVIEW
55+
created: 2024-12-12T14:35:45.296697-05:00
56+
review_status: REVIEWED

0 commit comments

Comments
 (0)