GHSA-c85w-x26q-ch87: Getformwork/formwork Formwork Improperly Validates Input Of Vulnerability

HIGH
CVSS 8.2
CWE-1285 CWE-248
Published
Advisory Summary

GHSA-c85w-x26q-ch87 is a HIGH (CVSS 8.2) formwork improperly validates input of vulnerability (CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input) affecting Getformwork/formwork libraries in the Packagist ecosystem. The issue involves formwork improperly validates input of user role preventing site and panel availability. Remediation is available by upgrading affected packages to version 2.0.0-beta.4.

GHSA-c85w-x26q-ch87 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c85w-x26q-ch87
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input
Affected Product Getformwork/formwork
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability High (A:H)

How to Fix GHSA-c85w-x26q-ch87

To remediate this vulnerability, upgrade all affected Getformwork/formwork dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

getformwork/formwork fixed: 2.0.0-beta.4
Upgrade getformwork/formwork to 2.0.0-beta.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for getformwork/formwork

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c85w-x26q-ch87, inspect your project dependencies for Getformwork/formwork:

inspect dependencies for getformwork/formwork

Analyze the terminal output to locate any version of Getformwork/formwork in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-beta.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input, where the product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties. In Getformwork/formwork, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Improper validation of select fields allows attackers to craft an input that crashes the system, resulting in a 500 status and making the entire site and administration panel unavailable. This clearly impacts the Availability aspect of the CIA triad (confidentiality, integrity, and availability), although the attack still has certain limitations. ### Details The attack involves injecting any invalid user role value. Doing this will change the users data in a way that prevents users and then the entire site from loading. Even though the actual data change is minimal, the error is unrecoverable until a valid role parameter is restored by direct modification of the user account file. Proper validation of select fields will prevent extraneous valid from being accepted and making the entire site and administration panel unavailable. ### Patches - [**Formwork 2.x** (d9f0c1f)](https://github.com/getformwork/formwork/commit/d9f0c1feb3b9855d5bdc8bb189c0aaab2792e7ca) adds proper validation to select fields. ### Impact The condition for this attack is having high privileges or Admin access, which means it could be exploited by an Insider Threat. Alternatively, if an attacker gains access to a privileged user account, they can execute the attack as well. Overall, the attack is relatively difficult to carry out, but if successful, the impact and damage would be significant.

GHSA-c85w-x26q-ch87 Affected Getformwork/formwork Versions

1 component(s)
Fixed Versions:
2.0.0-beta.4
Product / Package Ecosystem Affected Versions Fixed Version
getformwork/formwork
Packagist
≥ 2.0.0-beta.1
< 2.0.0-beta.4
2.0.0-beta.4

References

Frequently Asked Questions

What is GHSA-c85w-x26q-ch87?
GHSA-c85w-x26q-ch87 is a security vulnerability in Getformwork/formwork involving Formwork improperly validates input of User role preventing site and panel availability under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input.
Which Getformwork/formwork versions are affected?
Affected versions include releases prior to 2.0.0-beta.4 across affected packages: getformwork/formwork.
What version fixes GHSA-c85w-x26q-ch87?
Upgrading to 2.0.0-beta.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is getformwork/formwork affected?
Yes, getformwork/formwork is affected in releases prior to 2.0.0-beta.4. Upgrade your dependency to 2.0.0-beta.4 or later.
What is the CVSS score of GHSA-c85w-x26q-ch87?
GHSA-c85w-x26q-ch87 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:H.
What CWE is associated with GHSA-c85w-x26q-ch87?
GHSA-c85w-x26q-ch87 is classified under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input (The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties.).
How can I check Packagist dependencies for GHSA-c85w-x26q-ch87?
Run the dependency tree command: 'inspect dependencies for getformwork/formwork'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c85w-x26q-ch87",
  "modified" : "2026-02-18T23:47:37Z",
  "published" : "2025-03-01T00:11:52Z",
  "aliases" : [ ],
  "summary" : "Formwork improperly validates input of User role preventing site and panel availability",
  "details" : "### Summary\nImproper validation of select fields allows attackers to craft an input that crashes the system, resulting in a 500 status and making the entire site and administration panel unavailable.\nThis clearly impacts the Availability aspect of the CIA triad (confidentiality, integrity, and availability), although the attack still has certain limitations.\n\n### Details\nThe attack involves injecting any invalid user role value. Doing this will change the users data in a way that prevents users and then the entire site from loading. Even though the actual data change is minimal, the error is unrecoverable until a valid role parameter is restored by direct modification of the user account file.\nProper validation of select fields will prevent extraneous valid from being accepted and making the entire site and administration panel unavailable.\n\n### Patches\n- [**Formwork 2.x** (d9f0c1f)](https://github.com/getformwork/formwork/commit/d9f0c1feb3b9855d5bdc8bb189c0aaab2792e7ca) adds proper validation to select fields.\n\n### Impact\nThe condition for this attack is having high privileges or Admin access, which means it could be exploited by an Insider Threat. Alternatively, if an attacker gains access to a privileged user account, they can execute the attack as well.\nOverall, the attack is relatively difficult to carry out, but if successful, the impact and damage would be significant.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "getformwork/formwork"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-beta.1"
      }, {
        "fixed" : "2.0.0-beta.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/getformwork/formwork/security/advisories/GHSA-c85w-x26q-ch87"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getformwork/formwork/commit/d9f0c1feb3b9855d5bdc8bb189c0aaab2792e7ca"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/getformwork/formwork"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1285", "CWE-248" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-01T00:11:52Z",
    "nvd_published_at" : null
  }
}