Skip to content

Path Traversal in getgrav/grav

CVE-2026-72695 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Grav の MediaUploadTrait::deleteFile() にパストラバーサルの脆弱性があり、メディア管理権限を持つ認証済みユーザーが、保存先ディレクトリの外にあるファイルを削除できるおそれがあります。影響を受けるのは 2.0.16 より前のバージョンで、2.0.16 以降に更新することで対処できます。

What is the problem

GravのMediaUploadTrait::deleteFile()にパストラバーサルの脆弱性が存在。

Affected scope

Grav 2.0.16未満で、MediaUploadTrait::deleteFile()に影響。

Severity

媒体管理権限を持つ認証ユーザーが任意のファイルを削除できる重大な問題。

How to fix

Gravをバージョン2.0.16以降にアップデートする。

Workaround

情報なし

Detection

該当バージョンを使用している場合は影響を受ける可能性がある。

Affected packages

PackageAffected → Fixed
composergetgrav/grav
< 2.0.16→ 2.0.16
Original description The description as published by the source.

Grav before 2.0.16 contains a path traversal vulnerability in MediaUploadTrait::deleteFile() that allows authenticated users with media management permissions to delete arbitrary files by supplying filenames with directory traversal sequences. The method validates only the basename portion of the filename while preserving unvalidated directory paths containing ../ sequences that are passed to unlink(), enabling deletion of files outside the intended media storage directory.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details