Skip to content

← Public intelligence

Packagist package

getgrav/grav

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

93 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.2PackagistPublished

    Grav Server-side Template Injection (SSTI) via Denylist Bypass Vulnerability

    CVE-2023-34253 · GHSA-j3v8-v77f-fvgm

    Affected
    • Packagist getgrav/grav < 1.7.42
    Fixed in
    1.7.42· Vendor fix available
    Issue
    Hi, actually we have sent the bug report to security@getgrav.org on 27th March 2023 and on 10th April 2023. Grav Server-side Template Injection (SSTI) via Denylist Bypass Vulnerability Summary: | Product | Grav CMS | | ----------------------- | --------------------------------------------- | | Vendor | Grav | | Severity | High - Users with login access to Grav Admin panel and page creation/update permissions are able to obtain remote code/command execution | | Affected Versions | <= v1.7.40 (Commit 685d762) (Latest version as of writing) | | Tested Versions | v1.7.40 | | Internal Identifier | STAR-2023-0006 | | CVE Identifier | Reserved CVE-2023-30592, CVE-2023-30593, CVE-2023-30594 | | CWE(s) | CWE-184: Incomplete List of Disallowed Inputs, CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine | CVSS3.1 Scoring System: Base Score: 7.2 (High) Vector String: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | Metric | Value | | ---------------------------- |…

    Recommended action: Upgrade to 1.7.42 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. High, CVSS 7.2PackagistPublished

    Grav Server-side Template Injection (SSTI) via Twig Default Filters

    CVE-2023-34252 · GHSA-96xv-rmwj-6p9w

    Affected
    • Packagist getgrav/grav < 1.7.42
    Fixed in
    1.7.42· Vendor fix available
    Issue
    Hi, actually we have sent the bug report to security@getgrav.org on 27th March 2023 and on 10th April 2023. Grav Server-side Template Injection (SSTI) via Insufficient Validation in filterFilter Summary: | Product | Grav CMS | | ----------------------- | --------------------------------------------- | | Vendor | Grav | | Severity | High - Users with login access to Grav Admin panel and page creation/update permissions are able to obtain remote code/command execution | | Affected Versions | <= v1.7.40 (Commit 685d762) (Latest version as of writing) | | Tested Versions | v1.7.40 | | Internal Identifier | STAR-2023-0007 | | CVE Identifier | TBD | | CWE(s) | CWE-20: Improper Input Validation, CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine | CVSS3.1 Scoring System: Base Score: 7.2 (High) Vector String: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | Metric | Value | | ---------------------------- | --------- | | Attack Vector (AV) | Network | | Attack…

    Recommended action: Upgrade to 1.7.42 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. Critical, CVSS 9.1PackagistPublished

    Grav Server Side Template Injection (SSTI) vulnerability

    CVE-2023-34251 · GHSA-f9jf-4cp4-4fq5

    Affected
    • Packagist getgrav/grav < 1.7.42
    Fixed in
    1.7.42· Vendor fix available
    Issue
    I found an RCE(Remote Code Execution) by SSTI in the admin screen. Details Remote Code Execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. PoC 1. Log in to the administrator screen and access the edit screen of the default page "Typography". (http://127.0.0.1:8000/admin/pages/typography) 2. Open the browser's console screen and execute the following JavaScript code to confirm that an arbitrary command (id) is being executed. Execution Result - Payload: {{['id']|map('system')|join}} - Payload: {{['cat /etc/passwd']|map('system')|join}} PoC Video - PoC Video Impact Remote Command Execution (RCE) is possible. Occurrences - https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174 References - PortSwigger: Server-side template injection - HackTricks: SSTI (Server Side Template Injection)

    Recommended action: Upgrade to 1.7.42 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. High, CVSS 7.2PackagistPublished

    Code injection in grav

    CVE-2022-2073 · GHSA-cxgw-r5jg-7xwq

    Affected
    • Packagist getgrav/grav < 1.7.34
    Fixed in
    1.7.34· Vendor fix available
    Issue
    Grav is vulnerable to Server Side Template Injection via Twig. According to a previous vulnerability report, Twig should not render dangerous functions by default, such as system.

    Recommended action: Upgrade to 1.7.34 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. High, CVSS 8.1PackagistPublished

    Grav CMS Arbitrary File Deletion

    CVE-2020-29555 · GHSA-gpmf-q5jh-hjx4

    Affected
    • Packagist getgrav/grav >= 1.7.0-beta.1, <= 1.7.0-rc.17; < 1.6.30
    Fixed in
    1.6.30· Partial vendor fix
    Issue
    The BackupDelete functionality in Grav CMS through 1.7.0-rc.17 allows an authenticated attacker to delete arbitrary files on the underlying server by exploiting a path-traversal technique. (This vulnerability can also be exploited by an unauthenticated attacker due to a lack of CSRF protection.)

    Recommended action: Upgrade to 1.6.30; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. Medium, CVSS 5.5PackagistPublished

    Grav CMS Local File Injection

    CVE-2020-29556 · GHSA-r3rg-jrjq-w4mr

    Affected
    • Packagist getgrav/grav >= 1.7.0-beta.1, <= 1.7.0-rc.17; < 1.6.30
    Fixed in
    1.6.30· Partial vendor fix
    Issue
    The Backup functionality in Grav CMS through 1.7.0-rc.17 allows an authenticated attacker to read arbitrary local files on the underlying server by exploiting a path-traversal technique. (This vulnerability can also be exploited by an unauthenticated attacker due to a lack of CSRF protection.)

    Recommended action: Upgrade to 1.6.30; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. High, CVSS 8.8PackagistPublished

    Grav CMS Cross-Site Request Forgery (CSRF)

    CVE-2020-29553 · GHSA-fqff-vcvx-68h3

    Affected
    • Packagist getgrav/grav >= 1.7.0-beta.1, <= 1.7.0-rc.17; < 1.6.30
    Fixed in
    1.6.30· Partial vendor fix
    Issue
    The Scheduler in Grav CMS through 1.7.0-rc.17 allows an attacker to execute a system command by tricking an admin into visiting a malicious website (CSRF).

    Recommended action: Upgrade to 1.6.30; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  8. Medium, CVSS 6.1PackagistPublished

    Grav CMS Cross-site scripting (XSS) vulnerability

    CVE-2018-5233 · GHSA-977g-93f5-rqjx

    Affected
    • Packagist getgrav/grav < 1.3.0
    Fixed in
    1.3.0· Vendor fix available
    Issue
    Cross-site scripting (XSS) vulnerability in system/src/Grav/Common/Twig/Twig.php in Grav CMS before 1.3.0 allows remote attackers to inject arbitrary web script or HTML via the PATHINFO to admin/tools.

    Recommended action: Upgrade to 1.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  9. Medium, CVSS 5.4PackagistPublished

    Stored cross site scripting in getgrav/grav

    CVE-2022-1173 · GHSA-3p5m-j98p-c698

    Affected
    • Packagist getgrav/grav < 1.7.33
    Fixed in
    1.7.33· Vendor fix available
    Issue
    Stored cross-site scripting in GitHub repository getgrav/grav prior to 1.7.33.

    Recommended action: Upgrade to 1.7.33 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  10. High, CVSS 7.1PackagistPublished

    Stored Cross-site Scripting in grav

    CVE-2022-0970 · GHSA-r6hh-5g3q-wwgc

    Affected
    • Packagist getgrav/grav < 1.7.31
    Fixed in
    1.7.31· Vendor fix available
    Issue
    Grav prior to 1.7.31 is vulnerable to stored cross-site scripting.

    Recommended action: Upgrade to 1.7.31 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  11. Medium, CVSS 4.6PackagistPublished

    Cross site scripting in getgrav/grav

    CVE-2022-0743 · GHSA-2p89-ppc2-mrq4

    Affected
    • Packagist getgrav/grav < 1.7.31
    Fixed in
    1.7.31· Vendor fix available
    Issue
    User input is not properly sanitized leading to cross site scrpting (xss) in grav.

    Recommended action: Upgrade to 1.7.31 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  12. Medium, CVSS 5.7PackagistPublished

    Cross-site Scripting in grav

    CVE-2022-0268 · GHSA-735v-wx75-xmmm

    Affected
    • Packagist getgrav/grav < 1.7.28
    Fixed in
    1.7.28· Vendor fix available
    Issue
    In grav prior to version 1.7.28, a low privilege user can create a page with arbitrary javascript by bypassing insufficent XSS filtering.

    Recommended action: Upgrade to 1.7.28 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  13. Medium, CVSS 6.1PackagistPublished

    Open Redirect in Grav

    CVE-2020-11529 · GHSA-wrxc-mr2w-cjpv

    Affected
    • Packagist getgrav/grav < 1.6.23
    Fixed in
    1.6.23· Vendor fix available
    Issue
    Common/Grav.php in Grav before 1.6.23 has an Open Redirect.

    Recommended action: Upgrade to 1.6.23 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  14. Medium, CVSS 6.3PackagistPublished

    Cross-Site Scripting in grav

    CVE-2021-3904 · GHSA-5jxc-hmqf-3f73

    Affected
    • Packagist getgrav/grav < 1.7.24
    Fixed in
    1.7.24· Vendor fix available
    Issue
    grav prior to version 1.7.24 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

    Recommended action: Upgrade to 1.7.24 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  15. Medium, CVSS 6.3PackagistPublished

    Reliance on Cookies without Validation and Integrity Checking in getgrav/grav

    CVE-2021-3818 · GHSA-cg3q-59w7-rvc2

    Affected
    • Packagist getgrav/grav < 1.7.21
    Fixed in
    1.7.21· Vendor fix available
    Issue
    grav is vulnerable to Reliance on Cookies without Validation and Integrity Checking. A cookie with an overly broad path can be accessed through other applications on the same domain. Since cookies often carry sensitive information such as session identifiers, sharing cookies across applications can lead a vulnerability in one application to cause a compromise in another.

    Recommended action: Upgrade to 1.7.21 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  16. High, CVSS 8.4PackagistPublished

    Grav's Twig processing allowing dangerous PHP functions by default

    CVE-2021-29440 · GHSA-g8r4-p96j-xfxc

    Affected
    • Packagist getgrav/grav <= 1.7.10
    Fixed in
    1.7.11· Vendor fix available
    Issue
    Impact Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. Patches The issue was addressed by preventing dangerous functions from being called in Twig templates. A configuration option has been added to manually allow arbitrary PHP functions (system.twig.safefunctions) and filters (system.twig.safefilters). Futures major versions of Grav may disable this functionality by default. Workarounds Blocking access to the /admin path from untrusted sources will reduce the probability of exploitation. References - https://portswigger.net/research/server-side-template-injection - https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities For more information If you have any questions or comments about this advisory, you can contact: - The original reporters, by sending an…

    Recommended action: Upgrade to 1.7.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  17. UnratedPackagistPublished

    Cross-Site Scripting in Grav

    GHSA-cvmr-6428-87w9

    Affected
    • Packagist getgrav/grav < 1.6.30
    Fixed in
    1.6.30· Vendor fix available
    Issue
    Impact Privileged users (with the ability to edit pages) have a mechanism to perform remote code execution via XSS. At a minimum, the vulnerability represents a bypass of security controls put in place to mitigate this form of attack. The remote code execution can be performed because XSS would allow an attacker to execute functionality on behalf of a stolen administrative account - the facility to install custom plugins would then allow said attacker to install a plugin containing a web shell and thus garner access to the underlying system. References https://owasp.org/www-project-top-ten/2017/A72017-Cross-SiteScripting(XSS) https://cheatsheetseries.owasp.org/cheatsheets/CrossSiteScriptingPreventionCheatSheet.html https://cwe.mitre.org/data/definitions/79.html For more information Please contact contact@pentest.co.uk

    Recommended action: Upgrade to 1.6.30 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  18. Medium, CVSS 6.1PackagistPublished

    Cross-site Scripting in Grav

    CVE-2019-16126 · GHSA-6268-v434-45m5

    Affected
    • Packagist getgrav/grav <= 1.7.0-beta.7
    Fixed in
    1.7.0-beta.8· Vendor fix available
    Issue
    Grav through 1.6.15 allows (Stored) Cross-Site Scripting due to JavaScript execution in SVG images.

    Recommended action: Upgrade to 1.7.0-beta.8 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →