Skip to content

Commit fbd1636

Browse files
authored
feat(trivy): Bump to v0.45.0 (#256)
1 parent 559eb12 commit fbd1636

File tree

6 files changed

+151
-178
lines changed

6 files changed

+151
-178
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "build"
22
on: [push, pull_request]
33
env:
4-
TRIVY_VERSION: 0.43.1
4+
TRIVY_VERSION: 0.45.0
55
BATS_LIB_PATH: '/usr/lib/'
66
jobs:
77
build:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/aquasecurity/trivy:0.43.1
1+
FROM ghcr.io/aquasecurity/trivy:0.45.0
22
COPY entrypoint.sh /
33
RUN apk --no-cache add bash curl npm
44
RUN chmod +x /entrypoint.sh

test/data/config-sarif.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565
}
6666
],
67-
"version": "0.43.1"
67+
"version": "0.45.0"
6868
}
6969
},
7070
"results": [

test/data/image-trivyignores.test

+69-81
Large diffs are not rendered by default.

test/data/image.test

+69-93
Large diffs are not rendered by default.

test/data/yamlconfig.test

+10-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"PkgName": "apk-tools",
6565
"InstalledVersion": "2.10.6-r0",
6666
"FixedVersion": "2.10.7-r0",
67+
"Status": "fixed",
6768
"Layer": {
6869
"Digest": "sha256:396c31837116ac290458afcb928f68b6cc1c7bdd6963fc72f52f365a2a89c1b5",
6970
"DiffID": "sha256:9fb3aa2f8b8023a4bebbf92aa567caf88e38e969ada9f0ac12643b2847391635"
@@ -75,6 +76,7 @@
7576
"Name": "Alpine Secdb",
7677
"URL": "https://secdb.alpinelinux.org/"
7778
},
79+
"Title": "an out of boundary read while libfetch uses strtol to parse the relevant numbers into address bytes leads to information leak or crash",
7880
"Description": "libfetch before 2021-07-26, as used in apk-tools, xbps, and other products, mishandles numeric strings for the FTP and HTTP protocols. The FTP passive mode implementation allows an out-of-bounds read because strtol is used to parse the relevant numbers into address bytes. It does not check if the line ends prematurely. If it does, the for-loop condition checks for the '\\0' terminator one byte too late.",
7981
"Severity": "CRITICAL",
8082
"CweIDs": [
@@ -86,15 +88,22 @@
8688
"V3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
8789
"V2Score": 6.4,
8890
"V3Score": 9.1
91+
},
92+
"redhat": {
93+
"V3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
94+
"V3Score": 9.1
8995
}
9096
},
9197
"References": [
98+
"https://access.redhat.com/security/cve/CVE-2021-36159",
9299
"https://github.com/freebsd/freebsd-src/commits/main/lib/libfetch",
93100
"https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10749",
94101
"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc@%3Cdev.kafka.apache.org%3E",
95102
"https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc@%3Cusers.kafka.apache.org%3E",
96103
"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7@%3Cdev.kafka.apache.org%3E",
97-
"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7@%3Cusers.kafka.apache.org%3E"
104+
"https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7@%3Cusers.kafka.apache.org%3E",
105+
"https://nvd.nist.gov/vuln/detail/CVE-2021-36159",
106+
"https://www.cve.org/CVERecord?id=CVE-2021-36159"
98107
],
99108
"PublishedDate": "2021-08-03T14:15:00Z",
100109
"LastModifiedDate": "2021-10-18T12:19:00Z"

0 commit comments

Comments
 (0)