Repository navigation
Amazon Linux 2023: Corretto packages (Vendor "Amazon") skipped as third-party, ALAS advisories not detected since v0.70.0 #11773
goldmund84
started this conversation in
False Detection
Replies: 1 comment
|
Thanks for the write-up. I ran into the same thing while checking how Trivy handles Java4Shell, and I've opened #11774 with a fix. It treats a package as official when the vendor is exactly |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
IDs
CVE-2026-101516,CVE-2026-113470,CVE-2026-114820,CVE-2026-114938,CVE-2026-114939,CVE-2026-114940,CVE-2026-114942,CVE-2026-114943,CVE-2026-114944,CVE-2026-114945,CVE-2026-114946,CVE-2026-83374,CVE-2026-83376,CVE-2026-83378,CVE-2026-83380,CVE-2026-83381,CVE-2026-83387,CVE-2026-83400,CVE-2026-87255,CVE-2026-87290,CVE-2026-87291,CVE-2026-87292,CVE-2026-87293,CVE-2026-87294,CVE-2026-87367,CVE-2026-91332,CVE-2026-91334,CVE-2026-91335,CVE-2026-91373,CVE-2026-91374,CVE-2026-91375,CVE-2026-91379,CVE-2026-91380,CVE-2026-91381,CVE-2026-91382,CVE-2026-91394,CVE-2026-91395,CVE-2026-91396,CVE-2026-91397,CVE-2026-91398,CVE-2026-91400,CVE-2026-91403,CVE-2026-91409,CVE-2026-91410,CVE-2026-91411,CVE-2026-91415,CVE-2026-91418,CVE-2026-91451,CVE-2026-91452,CVE-2026-91453,CVE-2026-91461,CVE-2026-91462,CVE-2026-91463,CVE-2026-91464,CVE-2026-91487
Description
On Amazon Linux 2023 images, trivy no longer reports any vulnerability for the Corretto JDK packages (
java-*-amazon-corretto*). The packages are detected, but they are skipped before the ALAS advisory match.Cause, as far as we can tell:
java-*-amazon-corretto*. About 14,500 have "Amazon Linux".Impact: every AL2023 image with Corretto looks Corretto-clean, although ALAS advisories with fixed versions exist (for example 1:17.0.21.0.10, 1:17.0.21.0.11 and 1:17.0.21.1.2 for java-17). The images most exposed to this are Java services, and nothing tells the user that the packages were skipped, except a debug log line.
Suggested fix (the maintainers decide the final rule): treat the exact vendor "Amazon" as an official vendor for the Amazon Linux family. Please do not trust packages by the "amzn" release string, because third-party RPMs can carry it too.
Reproduction Steps
1. docker run --rm aquasec/trivy:0.76.2 image --debug --scanners vuln --pkg-types os amazoncorretto:17.0.20-al2023 Result: no java-17-amazon-corretto findings, and the debug log shows: [amazon] Skipping third-party packages packages=[java-17-amazon-corretto ...] 2. docker run --rm aquasec/trivy:0.69.3 image --scanners vuln --pkg-types os amazoncorretto:17.0.20-al2023 Result: 55 CVEs on java-17-amazon-corretto (220 rows across the Corretto subpackages), plus the same 70 other OS findings. Same image and the same DB in both runs. Versions 0.72.0, 0.74.0 and 0.76.2 (standalone and client/server) all give 0 Corretto findings. 0.69.3 standalone and a 0.71.1 client (with a 0.71.1 or 0.76.2 server) give 55 CVEs. Expected: Corretto packages from the official AL2023 repo are matched against ALAS like other OS packages.Target
Container Image
Scanner
Vulnerability
Target OS
Amazon Linux 2023
Debug Output
Version
Checklist
-f jsonthat shows data sources and confirmed that the security advisory in data sources was correctAll reactions