Skip to content

Commit f687085

Browse files
committed
new vulnerability in github.com/hashicorp/consul-template
1 parent cfc4512 commit f687085

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

input/new.json

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
{
2-
"package_name": "",
3-
"patch_versions": [],
4-
"vulnerable_ranges": [],
5-
"cwe": [],
6-
"tldr": "",
7-
"doest_this_affect_me": "",
8-
"how_to_fix": "",
9-
"vulnerable_to": "",
2+
"package_name": "github.com/hashicorp/consul-template",
3+
"patch_versions": [
4+
"0.41.3"
5+
],
6+
"vulnerable_ranges": [
7+
[
8+
"0.18.0",
9+
"0.41.2"
10+
]
11+
],
12+
"cwe": [
13+
"CWE-400"
14+
],
15+
"tldr": "Affected versions of this package are vulnerable to denial of service (DoS) due to a runtime panic in the `ParseTemplateConfig` function when handling malformed inputs like `:` or `:::`. The issue occurs because empty regex matches lead to out-of-range indexing. The fix adds proper handling for empty matches, returning a controlled error instead of panicking.",
16+
"doest_this_affect_me": "You are affected if you are using a version that falls within the vulnerable range.",
17+
"how_to_fix": "Upgrade the `github.com/hashicorp/consul-template` library to the patch version.",
18+
"reporter": "",
19+
"vulnerable_to": "Denial of Service (DoS)",
1020
"related_cve_id": "",
11-
"language": "",
12-
"severity_class": "",
13-
"aikido_score": 0,
14-
"changelog": ""
21+
"language": "GO",
22+
"severity_class": "LOW",
23+
"aikido_score": 28,
24+
"changelog": "https://github.com/hashicorp/consul-template/blob/main/CHANGELOG.md"
1525
}

0 commit comments

Comments
 (0)