CVE-2024-35191: Verbb/formie Verbb/formie Server-Side Template Injection For Vulnerability
MODERATECVE-2024-35191 is a MODERATE (CVSS 4.4) verbb/formie server-side template injection for vulnerability (CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine) affecting Verbb/formie libraries in the Packagist ecosystem. The issue involves verbb/formie server-side template injection for variable-enabled settings. Remediation is available by upgrading affected packages to version 2.1.6.
CVE-2024-35191 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-35191
To remediate this vulnerability, upgrade all affected Verbb/formie dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade verbb/formie to 2.1.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for verbb/formie
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-35191, inspect your project dependencies for Verbb/formie:
inspect dependencies for verbb/formie
Analyze the terminal output to locate any version of Verbb/formie in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.6), 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-1336: Improper Neutralization of Special Elements Used in a Template Engine, where the product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. In Verbb/formie, 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
CVE-2024-35191 Affected Verbb/formie Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
verbb/formie
|
Packagist |
< 2.1.6
|
2.1.6
|
References
Frequently Asked Questions
What is CVE-2024-35191?
Which Verbb/formie versions are affected?
What version fixes CVE-2024-35191?
Is verbb/formie affected?
What is the CVSS score of CVE-2024-35191?
What CWE is associated with CVE-2024-35191?
How can I check Packagist dependencies for CVE-2024-35191?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v45m-hxqp-fwf5",
"modified" : "2024-05-20T22:07:17Z",
"published" : "2024-05-20T20:26:28Z",
"aliases" : [ "CVE-2024-35191" ],
"summary" : "verbb/formie Server-Side Template Injection for variable-enabled settings",
"details" : "### Impact\nUsers with access to a form's settings can include malicious Twig code into fields that support Twig. These might be the Submission Title or the Success Message. This code will then be executed upon creating a submission, or rendering the text.\n\nThis is listed as low-medium severity due to requiring control panel access to edit a form's settings.\n\n### Patches\nThis has been fixed in Formie 2.1.6. Users should ensure they are running at least this version.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "verbb/formie"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/verbb/formie/security/advisories/GHSA-v45m-hxqp-fwf5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35191"
}, {
"type" : "WEB",
"url" : "https://github.com/verbb/formie/commit/90296edf7e707f117e760aa57e70dbd43a854420"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/verbb/formie"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1336" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-20T20:26:28Z",
"nvd_published_at" : "2024-05-20T21:15:09Z"
}
}