Skip to main content

Duplicate Advisory: Grav is Vulnerable to XXE via SVG Upload

0
High
Published: 06/23/2026 (06/23/2026, 15:32:37 UTC)
Source: GCVE Database
Product: getgrav/grav

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.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

Packagistghsa
getgrav/grav
Affected versions
<2.0.0-beta.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/24/2026, 07:00:38 UTC

Technical Analysis

Grav prior to version 2.0.0-beta.2 contains an XXE vulnerability in its SVG upload processing. The vulnerability is due to the use of simplexml_load_string without disabling external entity loading, which enables authenticated attackers to inject malicious XML payloads via SVG files. This can lead to arbitrary file disclosure on the affected system. The vulnerability is tracked as CWE-611 and has a CVSS 3.1 base score of 6.5, indicating a high severity impact primarily on confidentiality. No known exploits in the wild have been reported. A patch is available to remediate this issue.

Potential Impact

An authenticated attacker can exploit this vulnerability to read arbitrary files on the server hosting Grav by uploading specially crafted SVG files containing malicious XML external entity payloads. This compromises confidentiality but does not affect integrity or availability. There are no reports of active exploitation in the wild.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-32fw-h446-j4hh
Osv Schema Version
1.4.0
Ecosystems
["Packagist"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6ab4be99f7a7c54106f0dfa7

Added to database: 09/24/2026, 06:09:29 UTC

Last enriched: 09/24/2026, 07:00:38 UTC

Last updated: 09/25/2026, 05:47:33 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses