Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[juju] Add checks for 3 CVEs #985

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions examples/hotsos-example-juju.short.summary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ potential-issues:
48 hours - please check.
bugs-detected:
juju:
https://www.cve.org/CVERecord?id=CVE-2024-3250: This host is running a version
of Juju (2.9.22) that is affected by a known security vulnerability. Please
https://www.cve.org/CVERecord?id=CVE-2024-3250: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-7558: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8037: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8038: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
13 changes: 11 additions & 2 deletions examples/hotsos-example-juju.summary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,17 @@ juju:
logger.go:
'2022-02-10': 195
bugs-detected:
https://www.cve.org/CVERecord?id=CVE-2024-3250: This host is running a version
of Juju (2.9.22) that is affected by a known security vulnerability. Please
https://www.cve.org/CVERecord?id=CVE-2024-3250: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-7558: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8037: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8038: 2.9.22 is the running version
of Juju on this host which is affected by a known security vulnerability. Please
upgrade to the latest version to get the fix.
potential-issues:
JujuWarnings:
Expand Down
60 changes: 52 additions & 8 deletions hotsos/defs/scenarios/juju/juju_binary_cve.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
vars:
msg_common: >-
is the running version of Juju on this host which is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
checks:
has_affected_juju_binary:
has_affected_juju_binary_check1:
binary:
handler: hotsos.core.plugins.juju.JujuBinaryInterface
juju:
Expand All @@ -11,15 +16,54 @@ checks:
max: '3.3.3'
- min: '3.4.0'
max: '3.4.1'
has_affected_juju_binary_check2:
binary:
handler: hotsos.core.plugins.juju.JujuBinaryInterface
juju:
- min: '2.9.0'
max: '2.9.50'
dosaboy marked this conversation as resolved.
Show resolved Hide resolved
- min: '3.0.0'
max: '3.1.9'
- min: '3.2.0'
max: '3.3.6'
- min: '3.4.0'
max: '3.4.5'
- min: '3.5.0'
max: '3.5.3'
conclusions:
juju_binary_cve:
decision: has_affected_juju_binary
juju_binary_cve_2024_3250:
decision: has_affected_juju_binary_check1
raises:
type: MitreCVE
cve-id: CVE-2024-3250
message: >-
This host is running a version of Juju ({version}) that is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
message: "{version} {msg_common}"
format-dict:
version: '@checks.has_affected_juju_binary_check1.requires.version'
msg_common: $msg_common
juju_binary_cve_2024_7558:
decision: has_affected_juju_binary_check2
raises:
type: MitreCVE
cve-id: CVE-2024-7558
message: "{version} {msg_common}"
format-dict:
version: '@checks.has_affected_juju_binary_check2.requires.version'
msg_common: $msg_common
juju_binary_cve_2024_8037:
decision: has_affected_juju_binary_check2
raises:
type: MitreCVE
cve-id: CVE-2024-8037
message: "{version} {msg_common}"
format-dict:
version: '@checks.has_affected_juju_binary_check2.requires.version'
msg_common: $msg_common
juju_binary_cve_2024_8038:
decision: has_affected_juju_binary_check2
raises:
type: MitreCVE
cve-id: CVE-2024-8038
message: "{version} {msg_common}"
format-dict:
version: '@checks.has_affected_juju_binary.requires.version'
version: '@checks.has_affected_juju_binary_check2.requires.version'
msg_common: $msg_common
14 changes: 13 additions & 1 deletion hotsos/defs/tests/scenarios/juju/juju_binary_cve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ mock:
return_value: 3.4.1
raised-bugs:
https://www.cve.org/CVERecord?id=CVE-2024-3250: >-
This host is running a version of Juju (3.4.1) that is
3.4.1 is the running version of Juju on this host which is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-7558: >-
3.4.1 is the running version of Juju on this host which is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8037: >-
3.4.1 is the running version of Juju on this host which is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
https://www.cve.org/CVERecord?id=CVE-2024-8038: >-
3.4.1 is the running version of Juju on this host which is
affected by a known security vulnerability. Please upgrade
to the latest version to get the fix.
Loading