脆弱性データベースGHSA-2vpq-v76w-pfwm

GHSA-2vpq-v76w-pfwm: 
PHP 脆弱性分析と緩和策

I tested the official cecil.phar from the 9.31.0 release (sha256 7a00a6e80e3500ac6dc12e5cfd3e8dd46ccfd93ec5e8ad47d645695dc0cb4ca0) on PHP 8.4.27, and the same code is still on the default branch. Two front matter variables are passed to the filesystem and to file_get_contents() without checks, so whoever can add or edit a page (a contributor whose pull request is built in CI, a headless-CMS editor, a hosted build service) controls file reads, HTTP requests and file writes made by the build user.

1. external reads local files and fetches any URL

src/Generator/ExternalBody.php:44 passes the page's external value to Util\File::fileGetContents(), which calls file_get_contents($filename, false, stream_context_create($options)) (src/Util/File.php:71). There is no scheme allowlist and no address filter, and the result becomes the page body in _site/.

---
title: ext
external: "http://127.0.0.1:9411/latest/meta-data/iam/security-credentials/lab-role"
---

With a local listener on 127.0.0.1:9411, php cecil.phar build site logged

GET /latest/meta-data/iam/security-credentials/lab-role Host=127.0.0.1:9411 UA=None

and the listener's JSON response was in _site/ext/index.html. external: "file:///.../secret.txt" put that file's contents in _site/lfi/index.html, and php://filter/convert.base64-encode/resource=... worked too. On a CI runner or build host this publishes local files (keys, .env, other checkouts) or cloud metadata responses as part of the site.

2. path with .. writes outside the output directory

The path/slug check in src/Collection/Page/Page.php:693-696 compares the value with Slugifier::slugify(), and SLUGIFY_PATTERN keeps . and /, so ../../escaped_proof is accepted unchanged. src/Step/Pages/Save.php:77-80 joins it to the output path and calls dumpFile() with no containment check. A page with

---
path: ../../escaped_proof
---

wrote escaped_proof/index.html two levels above _site/, with the page's content. That lets a page overwrite index.html files in other directories the build user can write.

Suggested fix

  • external: allow only http/https, reject file://, php://, data:, phar:// and other wrappers, and refuse loopback, private and link-local addresses (also after redirects, since follow_location is on).
  • path/slug: reject . and .. segments, and check in Save that the resolved path stays inside the output directory. Not tested: a real CI or hosted-build deployment; all of the above was run locally with a loopback listener. kta1kri

ソース: NVD

関連 PHP 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

GHSA-qrxh-g29w-pchrCRITICAL9.1
  • PHP logoPHP
  • yajra/laravel-datatables-oracle
いいえはいNov 28, 2026
GHSA-r28f-v6v7-gm9wHIGH8.6
  • PHP logoPHP
  • inter-mediator/inter-mediator
いいえいいえNov 28, 2026
GHSA-gqm7-fq99-9hmmHIGH7.5
  • PHP logoPHP
  • yajra/laravel-datatables-oracle
いいえはいNov 28, 2026
GHSA-7h52-wmhj-vrvfHIGH7.1
  • PHP logoPHP
  • ianm/follow-users
いいえはいNov 28, 2026
GHSA-2vpq-v76w-pfwmMEDIUM6.1
  • PHP logoPHP
  • cecil/cecil
いいえはいNov 28, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者