---
id: CVE-2026-74907
title: >-
  Grav before 2.0.15 contains a path traversal vulnerability in the static asset
  server within index.php that uses string prefix matching instead of
  directory-boundary validation
summary: >-
  Grav before 2.0.15 contains a path traversal vulnerability in the static asset
  server within index.php that uses string prefix matching instead of
  directory-boundary validation. Unauthenticated attackers can access files in
  sibling direc…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-22
published: '2026-08-18'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:32:39.347'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74907'
references:
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-4v9q-p283-qc2m'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/grav-before-path-traversal-via-plugin-asset-map-php
    label: disclosure@vulncheck.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74907'
  - url: 'https://github.com/advisories/GHSA-4v9q-p283-qc2m'
tags:
  - nvd
  - ghsa
  - composer
epss: 0.00333
epssPercentile: 0.26812
ingestedAt: '2026-09-08T21:11:12.279Z'
aliases:
  - GHSA-4v9q-p283-qc2m
ecosystem: composer
vendor: getgrav
product: getgrav/grav
affected:
  - getgrav/grav <= 2.0.14
patched:
  - getgrav/grav 2.0.15
---

## Overview

Grav before 2.0.15 contains a path traversal vulnerability in the static asset server within index.php that uses string prefix matching instead of directory-boundary validation. Unauthenticated attackers can access files in sibling directories by exploiting directory names that extend the base path string, such as requesting assets-secret when assets is the configured base.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-74907)

Affected packages:

- `getgrav/grav <= 2.0.14`

Patched in:

- `getgrav/grav 2.0.15`

Source: https://github.com/advisories/GHSA-4v9q-p283-qc2m
