forked from canonical/hotsos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds checker for CVE-2024-3250 (canonical#812)
Resolves: canonical#811
- Loading branch information
Showing
7 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
checks: | ||
has_affected_juju_binary: | ||
binary: | ||
handler: hotsos.core.plugins.juju.JujuBinaryInterface | ||
juju: | ||
- min: '1.0.0' | ||
max: '2.9.49' | ||
- min: '3.0.0' | ||
max: '3.1.8' | ||
- min: '3.2.0' | ||
max: '3.3.4' | ||
- min: '3.4.0' | ||
max: '3.4.2' | ||
conclusions: | ||
juju_binary_cve: | ||
decision: has_affected_juju_binary | ||
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. | ||
format-dict: | ||
version: '@checks.has_affected_juju_binary.requires.version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
checks: | ||
has_affected_pebble_snap: | ||
snap: | ||
pebble: | ||
- min: 646 | ||
max: 646 | ||
conclusions: | ||
pebble_cve: | ||
decision: has_affected_pebble_snap | ||
raises: | ||
type: MitreCVE | ||
cve-id: CVE-2024-3250 | ||
message: >- | ||
This host is running a version of Pebble ({revision}) that is | ||
affected by a known security vulnerability. Please upgrade | ||
to the latest version to get the fix. | ||
format-dict: | ||
revision: '@checks.has_affected_pebble_snap.requires.revision' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mock: | ||
patch: | ||
hotsos.core.plugins.juju.resources.JujuBinaryInterface.get_version: | ||
kwargs: | ||
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 | ||
affected by a known security vulnerability. Please upgrade | ||
to the latest version to get the fix. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
data-root: | ||
files: | ||
sos_commands/snap/snap_list_--all: | | ||
pebble v1.10.2 646 latest/stable canonical** classic | ||
raised-bugs: | ||
https://www.cve.org/CVERecord?id=CVE-2024-3250: >- | ||
This host is running a version of Pebble (646) that is | ||
affected by a known security vulnerability. Please upgrade | ||
to the latest version to get the fix. |