Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting getgrav/grav package, versions >=1.7.42.1, <1.7.42.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.15% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-GETGRAVGRAV-5783183
  • published19 Jul 2023
  • disclosed19 Jul 2023
  • credits4ex

Introduced: 19 Jul 2023

CVE-2023-37897  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade getgrav/grav to version 1.7.42.2 or higher.

Overview

getgrav/grav is a Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') due to incorrect return value from isDangerousFunction(), which allows to execution of the payload prepending double backslash (\\). The isDangerousFunction() check returns a false value instead of true when the \ symbol is found in the $name.

Note:

This vulnerability can be exploited if the attacker has access to:

  1. An Administrator account.

  2. A non-administrator user account that has Admin panel access and Create/Update page permissions.

CVSS Scores

version 3.1