Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2024-27921

CVE-2024-27921: Grav File Upload Path Traversal

March 22, 2024 (updated October 4, 2024)

Grav is vulnerable to a file upload path traversal vulnerability, that can allow an adversary to replace or create files with extensions such as .json, .zip, .css, .gif, etc. This vulnerabiltiy can allow attackers to inject arbitrary code on the server, undermine integrity of backup files by overwriting existing backups or creating new ones, and exfiltrating sensitive data using CSS Injection exfiltration techniques.

References

  • github.com/advisories/GHSA-m7hx-hw6h-mqmc
  • github.com/getgrav/grav
  • github.com/getgrav/grav/commit/5928411b86bab05afca2b33db4e7386a44858e99
  • github.com/getgrav/grav/security/advisories/GHSA-m7hx-hw6h-mqmc
  • nvd.nist.gov/vuln/detail/CVE-2024-27921

Code Behaviors & Features

Detect and mitigate CVE-2024-27921 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.45

Fixed versions

  • 1.7.45

Solution

Upgrade to version 1.7.45 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/getgrav/grav/CVE-2024-27921.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:26 +0000.