Intel

AIKIDO-2026-961730

slim/slim is vulnerable to Path Traversal

Path TraversalGHSA-h377-p8x2-prf9 Published Today

65

Medium Risk

This Affects:

PHPslim/slim
4.0.0 - 4.15.2
Fixed in 4.15.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

slim/slim is vulnerable to Path Traversal in versions 4.0.0 - 4.15.2.

How to fix this

Upgrade the slim/slim library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform