forked from aquasecurity/trivy
-
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.
feat(cli): add --skip-files option (aquasecurity#624)
* feat(cli): add --skip-files * test(integration): add --skip-files and --skip-dirs * chore(docs): update README * chore(docs): correct a grammar mistake
- Loading branch information
Showing
9 changed files
with
194 additions
and
4 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
114 changes: 114 additions & 0 deletions
114
integration/testdata/fluentd-multiple-lockfiles.json.golden
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,114 @@ | ||
[ | ||
{ | ||
"Target": "testdata/fixtures/fluentd-multiple-lockfiles.tar.gz (debian 10.2)", | ||
"Type": "debian", | ||
"Vulnerabilities": [ | ||
{ | ||
"VulnerabilityID": "CVE-2019-5188", | ||
"PkgName": "e2fsprogs", | ||
"InstalledVersion": "1.44.5-1+deb10u2", | ||
"FixedVersion": "1.44.5-1+deb10u3", | ||
"Layer": { | ||
"DiffID": "sha256:831c5620387fb9efec59fc82a42b948546c6be601e3ab34a87108ecf852aa15f" | ||
}, | ||
"SeveritySource": "nvd", | ||
"Title": "e2fsprogs: Out-of-bounds write in e2fsck/rehash.c", | ||
"Description": "A code execution vulnerability exists in the directory rehashing functionality of E2fsprogs e2fsck 1.45.4. A specially crafted ext4 directory can cause an out-of-bounds write on the stack, resulting in code execution. An attacker can corrupt a partition to trigger this vulnerability.", | ||
"Severity": "MEDIUM", | ||
"References": [ | ||
"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00004.html", | ||
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5188", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/2AKETJ6BREDUHRWQTV35SPGG5C6H7KSI/", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/6DOBCYQKCTTWXBLMUPJ5TX3FY7JNCOKY/", | ||
"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0973", | ||
"https://usn.ubuntu.com/4249-1/" | ||
] | ||
}, | ||
{ | ||
"VulnerabilityID": "CVE-2019-5188", | ||
"PkgName": "libcom-err2", | ||
"InstalledVersion": "1.44.5-1+deb10u2", | ||
"FixedVersion": "1.44.5-1+deb10u3", | ||
"Layer": { | ||
"DiffID": "sha256:831c5620387fb9efec59fc82a42b948546c6be601e3ab34a87108ecf852aa15f" | ||
}, | ||
"SeveritySource": "nvd", | ||
"Title": "e2fsprogs: Out-of-bounds write in e2fsck/rehash.c", | ||
"Description": "A code execution vulnerability exists in the directory rehashing functionality of E2fsprogs e2fsck 1.45.4. A specially crafted ext4 directory can cause an out-of-bounds write on the stack, resulting in code execution. An attacker can corrupt a partition to trigger this vulnerability.", | ||
"Severity": "MEDIUM", | ||
"References": [ | ||
"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00004.html", | ||
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5188", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/2AKETJ6BREDUHRWQTV35SPGG5C6H7KSI/", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/6DOBCYQKCTTWXBLMUPJ5TX3FY7JNCOKY/", | ||
"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0973", | ||
"https://usn.ubuntu.com/4249-1/" | ||
] | ||
}, | ||
{ | ||
"VulnerabilityID": "CVE-2019-5188", | ||
"PkgName": "libext2fs2", | ||
"InstalledVersion": "1.44.5-1+deb10u2", | ||
"FixedVersion": "1.44.5-1+deb10u3", | ||
"Layer": { | ||
"DiffID": "sha256:831c5620387fb9efec59fc82a42b948546c6be601e3ab34a87108ecf852aa15f" | ||
}, | ||
"SeveritySource": "nvd", | ||
"Title": "e2fsprogs: Out-of-bounds write in e2fsck/rehash.c", | ||
"Description": "A code execution vulnerability exists in the directory rehashing functionality of E2fsprogs e2fsck 1.45.4. A specially crafted ext4 directory can cause an out-of-bounds write on the stack, resulting in code execution. An attacker can corrupt a partition to trigger this vulnerability.", | ||
"Severity": "MEDIUM", | ||
"References": [ | ||
"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00004.html", | ||
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5188", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/2AKETJ6BREDUHRWQTV35SPGG5C6H7KSI/", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/6DOBCYQKCTTWXBLMUPJ5TX3FY7JNCOKY/", | ||
"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0973", | ||
"https://usn.ubuntu.com/4249-1/" | ||
] | ||
}, | ||
{ | ||
"VulnerabilityID": "CVE-2019-18224", | ||
"PkgName": "libidn2-0", | ||
"InstalledVersion": "2.0.5-1", | ||
"FixedVersion": "2.0.5-1+deb10u1", | ||
"Layer": { | ||
"DiffID": "sha256:831c5620387fb9efec59fc82a42b948546c6be601e3ab34a87108ecf852aa15f" | ||
}, | ||
"SeveritySource": "nvd", | ||
"Title": "libidn2: heap-based buffer overflow in idn2_to_ascii_4i in lib/lookup.c", | ||
"Description": "idn2_to_ascii_4i in lib/lookup.c in GNU libidn2 before 2.1.1 has a heap-based buffer overflow via a long domain string.", | ||
"Severity": "HIGH", | ||
"References": [ | ||
"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12420", | ||
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-18224", | ||
"https://github.com/libidn/libidn2/commit/e4d1558aa2c1c04a05066ee8600f37603890ba8c", | ||
"https://github.com/libidn/libidn2/compare/libidn2-2.1.0...libidn2-2.1.1", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/JDQVQ2XPV5BTZUFINT7AFJSKNNBVURNJ/", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/MINU5RKDFE6TKAFY5DRFN3WSFDS4DYVS/", | ||
"https://usn.ubuntu.com/4168-1/" | ||
] | ||
}, | ||
{ | ||
"VulnerabilityID": "CVE-2019-5188", | ||
"PkgName": "libss2", | ||
"InstalledVersion": "1.44.5-1+deb10u2", | ||
"FixedVersion": "1.44.5-1+deb10u3", | ||
"Layer": { | ||
"DiffID": "sha256:831c5620387fb9efec59fc82a42b948546c6be601e3ab34a87108ecf852aa15f" | ||
}, | ||
"SeveritySource": "nvd", | ||
"Title": "e2fsprogs: Out-of-bounds write in e2fsck/rehash.c", | ||
"Description": "A code execution vulnerability exists in the directory rehashing functionality of E2fsprogs e2fsck 1.45.4. A specially crafted ext4 directory can cause an out-of-bounds write on the stack, resulting in code execution. An attacker can corrupt a partition to trigger this vulnerability.", | ||
"Severity": "MEDIUM", | ||
"References": [ | ||
"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00004.html", | ||
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-5188", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/2AKETJ6BREDUHRWQTV35SPGG5C6H7KSI/", | ||
"https://lists.fedoraproject.org/archives/list/[email protected]/message/6DOBCYQKCTTWXBLMUPJ5TX3FY7JNCOKY/", | ||
"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0973", | ||
"https://usn.ubuntu.com/4249-1/" | ||
] | ||
} | ||
] | ||
} | ||
] |
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
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