CVE-2026-42845

Source
https://cve.org/CVERecord?id=CVE-2026-42845
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42845.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42845
Aliases
Published
2026-05-11T15:44:35Z
Modified
2026-10-28T02:30:49Z
Severity
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
Grav: Anonymous Page Content Overwrite via Form File Upload filename Override
Details

The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0 , there is an unauthenticated page-content overwrite via file upload (GHSA-w4rc-p66m-x6qq). Public form uploads now strip path components from the POST-supplied filename and hard-block page-content extensions (md, yaml, yml, json, twig, ini) regardless of the configurable dangerous-extensions list. A permissive accept policy combined with the default destination: self@ could otherwise let an attacker overwrite the page's own .md and pivot to super-admin via a process: save action. This vulnerability is fixed in 9.1.0.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42845.json"
}
References

Affected packages

Git / github.com/getgrav/grav-plugin-form

Affected ranges

Type
GIT
Repo
https://github.com/getgrav/grav-plugin-form
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "9.1.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "48bacc4187e1cff815000e526d5ca2878484867f"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

0.*
0.7.0
1.*
1.3.0-beta.1
1.3.0-beta.2
1.3.0-beta.3
1.3.0-beta.4
1.3.0-beta.6
1.3.0-rc.1
1.3.0-rc.2
1.3.0-rc.3
1.3.0-rc.4
2.*
2.0.0-rc.1
2.0.8-rc.1
2.8.0-rc.1
2.8.0-rc.2
3.*
3.0.0-beta.1
3.0.0-beta.2
3.0.0-beta.3
3.0.0-beta.4
3.0.0-beta.5
3.0.0-rc.1
3.0.0-rc.2
3.0.0-rc.3
3.0.0-rc.4
4.*
4.0.0
6.*
6.0.4
7.*
7.0.0
7.0.1
7.0.2
7.1.0
7.1.1
7.1.2
7.1.3
7.2.0
7.2.1
7.2.2
7.3.0
7.4.0
7.4.1
7.4.2
8.*
8.0.0
8.0.1
8.0.2
8.0.3
8.0.4
8.0.5
8.0.6
8.1.0
8.2.0
8.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42845.json"