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