Invalid Port Number
HIGHEXPOSE instruction has invalid port number. Valid ports are 1-65535.
EXPOSE instruction has invalid port number. Valid ports are 1-65535.
Experiment with the vulnerable code and security rule below. Edit the code to see how the rule detects different vulnerability patterns.
pathfinder ci --ruleset docker/DOCKER-COR-002 --project .Explore related security rules for Docker
Common questions about Invalid Port Number
Use Code Pathfinder to scan your Docker codebase and automatically detect instances of this vulnerability pattern. Install Code Pathfinder and run the following command in your project directory:
pathfinder ci --ruleset docker/DOCKER-COR-002 --project .This rule is aligned with industry-standard security frameworks and classifications:
New feature
The Invalid Port Number rule runs in CI and posts inline review comments on the exact lines — no dashboard, no SARIF viewer.