Skip to main content
VulnerabilityPublished Updated

getgrav/grav · Duplicate Advisory: Grav is Vulnerable to XXE via SVG Upload

Affects getgrav/gravSource GCVE Database

0

CVSS 6.5 Medium : upgrade to 2.0.0-beta.2 when convenient.

Data as of 24 Sep 2026, 07:00 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade getgrav/grav to 2.0.0-beta.2.

Affected software

ProductAffectedFixed in
Packagistgetgrav/gravAffected
  • <2.0.0-beta.2
Fixed in
  • 2.0.0-beta.2

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.

References

Community reviews

Loading reviews…