Replies: 3 comments
-
|
I confirmed that this issue is not reproducible with Trivy 0.61.1; Trivy 0.62.0 is the first version with this regression. Looking at the Trivy 0.62.0 changes at https://github.com/aquasecurity/trivy/blob/main/CHANGELOG.md#0620-2025-04-30, there's nothing obvious to me regarding this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @candrews ! I'll take a look. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Track #8903 |
Beta Was this translation helpful? Give feedback.
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.
-
Description
In Trivy 0.56, AVD-DS-0016 was only applied to the final layer (see #7368) because otherwise the finding is incorrectly reported when later layers override
CMDinstructions provided by earlier layer (initially reported at #7320).In Trivy 0.62.0, the fix has been regressed and the original issue, following the originally reproduction steps, is once again present.
Desired Behavior
Trivy seems to be looking for ` instructions in all of the layers of the docker image. Instead, it should only be looking at the final image.
Actual Behavior
Trivy misconfiguration scan incorrectly reports duplicate CMD instructions for some docker images.
Reproduction Steps
Target
Container Image
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions