Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-72695— Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile

Quick assessment

Affected
getgrav grav
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在 Grav 版本低于 2.0.16 中,MediaUploadTrait::deleteFile() 函数存在路径遍历漏洞。具有媒体管理权限的已认证用户可通过提供包含目录遍历序列(如“../”)的文件名,删除任意文件。该函数仅对文件名的基本名称(basename)部分进行验证,而未对包含“../”序列的未经验证的目录路径进行校验,直接将完整路径传递给 unlink() 函数,从而导致攻击者能够删除预期媒体存储目录之外的任意文件。

CVSS 8.1 · High EPSS 0.57% · P44

Affected Version Matrix 2

VendorProduct Version RangeStatus
getgrav grav < 2.0.16 affected
2.0.16 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-72695

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Grav before 2.0.16 Path Traversal via MediaUploadTrait deleteFile
Source: CVE Program / CVE List V5
Vulnerability Description
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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
getgrav grav 0 ~ 2.0.16 -

II. Public POCs for CVE-2026-72695

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9407 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-72695

登录查看更多情报信息。

Vendor Advisories for CVE-2026-72695 (2)

Same Patch Batch · getgrav · 2026-08-25 · 15 CVEs total

CVE-2026-56710 9.8 CRITICAL Grav Login Plugin before 1.0.16 Privilege Escalation via Unlock
CVE-2026-75574 8.8 HIGH Grav before 4.2.2 Remote Code Execution via Email Twig
CVE-2026-72696 8.4 HIGH Grav CMS before 2.0.16 Symlink Following via createLockFile
CVE-2026-56707 7.7 HIGH Grav Flex Objects 1.4.0 through 1.4.7 Authorization Bypass via Shortcode
CVE-2026-72700 7.5 HIGH Grav before 3.9.1 Timing Attack via Non-Constant-Time Token Comparison
CVE-2026-76846 7.5 HIGH Grav before 2.0.16 Information Disclosure via Twig Sandbox
CVE-2026-56709 7.5 HIGH Grav before 3.9.2 Host Header Injection via sendInvitationEmail
CVE-2026-72698 6.5 MEDIUM Grav CMS before 2.0.16 Information Disclosure via Twig Sandbox Bypass
CVE-2026-72697 6.5 MEDIUM Grav CMS before 2.0.16 Path Traversal via media_directory
CVE-2026-76839 6.5 MEDIUM Grav before 2.0.16 Information Disclosure via offsetGet
CVE-2026-72702 5.4 MEDIUM Grav CMS before 2.0.16 Origin Validation Bypass via Referer
CVE-2026-72699 5.3 MEDIUM Grav Login Plugin before 3.9.1 Email Enumeration via Registration
CVE-2026-56708 5.3 MEDIUM Grav API Plugin before 1.0.16 SSRF via DNS Rebinding
CVE-2026-72701 3.7 LOW Grav CMS before 2.0.16 Timing Attack via verifyNonce

IV. Related Vulnerabilities

V. Comments for CVE-2026-72695

No comments yet


Leave a comment