getgrav/grav · Duplicate Advisory: Grav is Vulnerable to XXE via SVG Upload
Affects getgrav/gravSource GCVE Database
CVSS 6.5 Medium : upgrade to 2.0.0-beta.2 when convenient.
Data as of 24 Sep 2026, 07:00 UTC
- Patch
- Available – fixed in 2.0.0-beta.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NWhat to do
Upgrade getgrav/grav to 2.0.0-beta.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistgetgrav/grav | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade Grav to version 2.0.0-beta.2 or later to remediate the issue. Until patched, avoid uploading untrusted SVG files or restrict SVG upload functionality to trusted users only.
Description
Grav versions before 2.0.0-beta.2 are affected by an XML External Entity (XXE) injection vulnerability in the SVG file upload functionality. This flaw allows authenticated attackers to read arbitrary files on the server by exploiting improper handling of XML entities in SVG files. The vulnerability arises because the application uses simplexml_load_string without disabling external entity loading. A patch is available to address this issue.