{
  "id": "CVE-2026-61457",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-61457",
  "published_at": "2026-07-15T11:25:46.519Z",
  "title": "Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass",
  "vendor": "getgrav",
  "product": "grav",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 contains a file upload extension bypass in the API media controller. HandlesMediaUploads::validateFileExtension() inspects only the final file extension via pathinfo($filename, PATHINFO_EXTENSION), so a user with api.media.write permission can upload a file with a double extension such as shell.php.jpg to bypass the dangerous extensions blocklist. The web server may then execute the file as PHP, resulting in remote code execution.",
  "cwe": "CWE-434",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "getgrav",
        "product": "grav",
        "ranges": [
          "\u003c 1.0.3"
        ],
        "fixed_in": [
          "1.0.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade grav to 1.0.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
