Correctness
Rules that catch build errors and correctness issues
3
Security Rules
Run All Correctness Rules
pathfinder scan --ruleset docker/correctness --project .Rules
Multiple ENTRYPOINT Instructions
MEDIUMDockerfile has multiple ENTRYPOINT instructions. Only the last one takes effect, making earlier ones misleading.
dockerdockerfileentrypointcorrectnessconfigurationmaintainabilityconfusinganti-pattern
CWE-710
Updated 2026-03-22
Multiple CMD Instructions
MEDIUMMultiple CMD instructions detected. Only the last one takes effect.
dockerdockerfilecmdcorrectnessconfigurationmaintainabilityconfusinganti-pattern
CWE-710
Updated 2026-03-22
Invalid Port Number
HIGHEXPOSE instruction has invalid port number. Valid ports are 1-65535.
dockerdockerfileportexposevalidationinput-validationcorrectnessnetworkingconfiguration
CWE-20
Updated 2026-03-22