Duplicate aliases defined in different FROMs
| Property | |
|---|---|
| Language | |
| Severity | |
| Vulnerability Type | omission |
Description#
Multiple FROM statements in a Dockerfile are using the same alias name, which is not allowed. This causes Docker to overwrite earlier build stages, leading to ambiguous or failed builds.
Impact#
If exploited, build processes may break or produce unintended images, potentially introducing vulnerabilities, missing dependencies, or incorrect application binaries into production environments.
Resolution#
Change aliases to make them different