slim/slim is vulnerable to Path Traversal
65
Medium Risk
Slim's routing resolver decodes the request path before matching a route, then decodes the captured route arguments a second time before passing them to the application. This double percent-decoding lets doubly percent-encoded input reach handlers in a form the router never validated, bypassing route parameter constraints such as patterns that forbid path separators. An externally supplied value like %252F arrives at the handler decoded to /, defeating the constraint and enabling path traversal when the argument is used to build a file path. The fix stops decoding route arguments a second time and returns them exactly as the resolver already decoded them.
You are affected if you are using a version that falls within the vulnerable range and your application relies on route argument constraints or consumes captured route arguments without revalidating the decoded value.
slim/slim is vulnerable to Path Traversal in versions 4.0.0 - 4.15.2.
Upgrade the slim/slim library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.