|
| 1 | +export const mockLayer = { |
| 2 | + Name: 'TestLayer', |
| 3 | + ParentName: 'ParentLayer', |
| 4 | + NamespaceName: 'Namespace', |
| 5 | + IndexedByVersion: 1, |
| 6 | + Features: [ |
| 7 | + { |
| 8 | + Name: 'openssl-libs', |
| 9 | + VersionFormat: '', |
| 10 | + NamespaceName: '', |
| 11 | + AddedBy: |
| 12 | + 'sha256:2fe2b9e85b7c384f07f3665132f448c43aa7a5a600f89b5adde70258bc22e5f2', |
| 13 | + Version: '1:1.1.1k-6.el8_5', |
| 14 | + Vulnerabilities: [ |
| 15 | + { |
| 16 | + Severity: 'Medium', |
| 17 | + NamespaceName: 'RHEL8-rhel-8', |
| 18 | + Link: 'https://access.redhat.com/errata/RHSA-2022:5818 https://access.redhat.com/security/cve/CVE-2022-1292 https://access.redhat.com/security/cve/CVE-2022-2068 https://access.redhat.com/security/cve/CVE-2022-2097', |
| 19 | + FixedBy: '1:1.1.1k-7.el8_6', |
| 20 | + Description: |
| 21 | + 'OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a full-strength general-purpose cryptography library.\n\nSecurity Fix(es):\n\n* openssl: c_rehash script allows command injection (CVE-2022-1292)\n\n* openssl: the c_rehash script allows command injection (CVE-2022-2068)\n\n* openssl: AES OCB fails to encrypt some bytes (CVE-2022-2097)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.', |
| 22 | + Name: 'RHSA-2022:5818: openssl security update (Moderate)', |
| 23 | + Metadata: { |
| 24 | + UpdatedBy: 'RHEL8-rhel-8', |
| 25 | + RepoName: 'cpe:/o:redhat:enterprise_linux:8::baseos', |
| 26 | + RepoLink: null, |
| 27 | + DistroName: 'Red Hat Enterprise Linux Server', |
| 28 | + DistroVersion: '8', |
| 29 | + NVD: { |
| 30 | + CVSSv3: { |
| 31 | + Vectors: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H', |
| 32 | + Score: 9.8, |
| 33 | + }, |
| 34 | + }, |
| 35 | + }, |
| 36 | + }, |
| 37 | + { |
| 38 | + Severity: 'High', |
| 39 | + NamespaceName: 'RHEL8-rhel-8', |
| 40 | + Link: 'https://access.redhat.com/errata/RHSA-2023:1405 https://access.redhat.com/security/cve/CVE-2022-4304 https://access.redhat.com/security/cve/CVE-2022-4450 https://access.redhat.com/security/cve/CVE-2023-0215 https://access.redhat.com/security/cve/CVE-2023-0286', |
| 41 | + FixedBy: '1:1.1.1k-9.el8_7', |
| 42 | + Description: |
| 43 | + 'OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a full-strength general-purpose cryptography library.\n\nSecurity Fix(es):\n\n* openssl: X.400 address type confusion in X.509 GeneralName (CVE-2023-0286)\n\n* openssl: timing attack in RSA Decryption implementation (CVE-2022-4304)\n\n* openssl: double free after calling PEM_read_bio_ex (CVE-2022-4450)\n\n* openssl: use-after-free following BIO_new_NDEF (CVE-2023-0215)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.', |
| 44 | + Name: 'RHSA-2023:1405: openssl security update (Important)', |
| 45 | + Metadata: { |
| 46 | + UpdatedBy: 'RHEL8-rhel-8', |
| 47 | + RepoName: 'cpe:/o:redhat:enterprise_linux:8::baseos', |
| 48 | + RepoLink: null, |
| 49 | + DistroName: 'Red Hat Enterprise Linux Server', |
| 50 | + DistroVersion: '8', |
| 51 | + NVD: { |
| 52 | + CVSSv3: { |
| 53 | + Vectors: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H', |
| 54 | + Score: 7.5, |
| 55 | + }, |
| 56 | + }, |
| 57 | + }, |
| 58 | + }, |
| 59 | + { |
| 60 | + Severity: 'Low', |
| 61 | + NamespaceName: 'RHEL8-rhel-8-including-unpatched', |
| 62 | + Link: 'https://access.redhat.com/errata/RHSA-2023:7877 https://access.redhat.com/security/cve/CVE-2023-3446 https://access.redhat.com/security/cve/CVE-2023-3817 https://access.redhat.com/security/cve/CVE-2023-5678', |
| 63 | + FixedBy: '1:1.1.1k-12.el8_9', |
| 64 | + Description: |
| 65 | + 'OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols, as well as a full-strength general-purpose cryptography library.\n\nSecurity Fix(es):\n\n* openssl: Excessive time spent checking DH keys and parameters (CVE-2023-3446)\n\n* OpenSSL: Excessive time spent checking DH q parameter value (CVE-2023-3817)\n\n* openssl: Generating excessively long X9.42 DH keys or checking excessively long X9.42 DH keys or parameters may be very slow (CVE-2023-5678)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.', |
| 66 | + Name: 'RHSA-2023:7877: openssl security update (Low)', |
| 67 | + Metadata: { |
| 68 | + UpdatedBy: 'RHEL8-rhel-8-including-unpatched', |
| 69 | + RepoName: 'cpe:/o:redhat:enterprise_linux:8::baseos', |
| 70 | + RepoLink: null, |
| 71 | + DistroName: 'Red Hat Enterprise Linux Server', |
| 72 | + DistroVersion: '8', |
| 73 | + NVD: { |
| 74 | + CVSSv3: { |
| 75 | + Vectors: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L', |
| 76 | + Score: 5.3, |
| 77 | + }, |
| 78 | + }, |
| 79 | + }, |
| 80 | + }, |
| 81 | + ], |
| 82 | + }, |
| 83 | + { |
| 84 | + Name: 'ncurses-base', |
| 85 | + VersionFormat: '', |
| 86 | + NamespaceName: '', |
| 87 | + AddedBy: |
| 88 | + 'sha256:2fe2b9e85b7c384f07f3665132f448c43aa7a5a600f89b5adde70258bc22e5f2', |
| 89 | + Version: '6.1-9.20180224.el8', |
| 90 | + Vulnerabilities: [ |
| 91 | + { |
| 92 | + Severity: 'Medium', |
| 93 | + NamespaceName: 'RHEL8-rhel-8', |
| 94 | + Link: 'https://access.redhat.com/errata/RHSA-2023:5249 https://access.redhat.com/security/cve/CVE-2023-29491', |
| 95 | + FixedBy: '0:6.1-9.20180224.el8_8.1', |
| 96 | + Description: |
| 97 | + 'The ncurses (new curses) library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses packages contain support utilities including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo.\n\nSecurity Fix(es):\n\n* ncurses: Local users can trigger security-relevant memory corruption via malformed data (CVE-2023-29491)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.', |
| 98 | + Name: 'RHSA-2023:5249: ncurses security update (Moderate)', |
| 99 | + Metadata: { |
| 100 | + UpdatedBy: 'RHEL8-rhel-8', |
| 101 | + RepoName: 'cpe:/o:redhat:enterprise_linux:8::baseos', |
| 102 | + RepoLink: null, |
| 103 | + DistroName: 'Red Hat Enterprise Linux Server', |
| 104 | + DistroVersion: '8', |
| 105 | + NVD: { |
| 106 | + CVSSv3: { |
| 107 | + Vectors: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H', |
| 108 | + Score: 7.8, |
| 109 | + }, |
| 110 | + }, |
| 111 | + }, |
| 112 | + }, |
| 113 | + ], |
| 114 | + }, |
| 115 | + { |
| 116 | + Name: 'Feature1', |
| 117 | + VersionFormat: '1.0.0', |
| 118 | + NamespaceName: 'Namespace', |
| 119 | + AddedBy: 'Tester', |
| 120 | + Version: '1.0.0', |
| 121 | + Vulnerabilities: [ |
| 122 | + { |
| 123 | + Severity: 'High', |
| 124 | + NamespaceName: 'Namespace', |
| 125 | + Link: 'https://example.com', |
| 126 | + FixedBy: 'Fixer', |
| 127 | + Description: 'Sample vulnerability', |
| 128 | + Name: 'Vuln1', |
| 129 | + Metadata: { |
| 130 | + UpdatedBy: 'Updater', |
| 131 | + RepoName: 'Repo', |
| 132 | + RepoLink: 'https://repo.example.com', |
| 133 | + DistroName: 'Ubuntu', |
| 134 | + DistroVersion: '18.04', |
| 135 | + NVD: { |
| 136 | + CVSSv3: { |
| 137 | + Vectors: 'CVSSv3 Vectors', |
| 138 | + Score: 7.5, |
| 139 | + }, |
| 140 | + }, |
| 141 | + }, |
| 142 | + }, |
| 143 | + ], |
| 144 | + }, |
| 145 | + { |
| 146 | + Name: 'Feature2', |
| 147 | + VersionFormat: '2.0.0', |
| 148 | + NamespaceName: 'Namespace', |
| 149 | + AddedBy: 'Tester', |
| 150 | + Version: '2.0.0', |
| 151 | + Vulnerabilities: [ |
| 152 | + { |
| 153 | + Severity: 'High', |
| 154 | + NamespaceName: 'Namespace', |
| 155 | + Link: 'https://example.com', |
| 156 | + FixedBy: 'Fixer', |
| 157 | + Description: 'Another vulnerability', |
| 158 | + Name: 'Vuln2', |
| 159 | + Metadata: { |
| 160 | + UpdatedBy: 'Updater', |
| 161 | + RepoName: 'Repo', |
| 162 | + RepoLink: 'https://repo.example.com', |
| 163 | + DistroName: 'Ubuntu', |
| 164 | + DistroVersion: '20.04', |
| 165 | + NVD: { |
| 166 | + CVSSv3: { |
| 167 | + Vectors: 'CVSSv3 Vectors', |
| 168 | + Score: 5.0, |
| 169 | + }, |
| 170 | + }, |
| 171 | + }, |
| 172 | + }, |
| 173 | + ], |
| 174 | + }, |
| 175 | + ], |
| 176 | +}; |
0 commit comments