From 9b6e5eed52d5b76cccc56b6f9c0b077472273722 Mon Sep 17 00:00:00 2001 From: Netpicker <156186606+netpicker@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:10:35 +0100 Subject: [PATCH] Create CVE-2023-44487.py --- CVE/Cisco XR/CVE-2023-44487.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CVE/Cisco XR/CVE-2023-44487.py diff --git a/CVE/Cisco XR/CVE-2023-44487.py b/CVE/Cisco XR/CVE-2023-44487.py new file mode 100644 index 0000000..1d571eb --- /dev/null +++ b/CVE/Cisco XR/CVE-2023-44487.py @@ -0,0 +1,15 @@ +from comfy.compliance import medium + + +@medium( + name='rule_cve_2023_44487', + platform=['cisco_xr'], + commands=dict(version='show version | include Software') +) +def rule_cve_2023_44487(configuration, commands, device): + import re + pattern = "Version\s([0-9.]+)" + match = re.search(pattern, str(commands.version)) + s_version = match.group(1) + version = tuple(map(int, s_version.split('.'))) + assert version > (7, 11, 2)