{"answers":{"affected":"2 open source packages ship an affected version, including verbb/formie. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-35191 in the wild and no public exploit code.","fix":"Upgrade verbb/formie to 2.1.6 or later.","what":"CVE-2024-35191 is a medium-severity code injection vulnerability in verbb formie, published on 20 May 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35191 and fix it if it is affected.\n\nWhat it is: CVE-2024-35191 is a medium-severity code injection vulnerability in verbb formie, published on 20 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-35191 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- verbb/formie (Packagist): affected all versions; fixed in 2.1.6\n- verbb/formie (Packagist): affected all versions; fixed in 2.1.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35191/ (Markdown: https://insights.sbomify.com/CVE-2024-35191/index.md)","id":"CVE-2024-35191","markdown":"https://insights.sbomify.com/CVE-2024-35191/index.md","name":"CVE-2024-35191","record":{"aliases":["GHSA-v45m-hxqp-fwf5"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Craft CMS plugin","requires_auth":"high_privilege","summary":"Users with form settings access can inject malicious Twig code into fields, leading to remote code execution upon submission or rendering.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"formie","vendor":"verbb"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Formie is a Craft CMS plugin for creating forms. Prior to 2.1.6, users 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.  This has been fixed in Formie 2.1.6.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"verbb/formie Server-Side Template Injection for variable-enabled settings","id":"CVE-2024-35191","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Trivy possibly leaks registry credential when scanning images from malicious registries","id":"CVE-2024-35192"},"packages":[{"ecosystem":"Packagist","fixed":["2.1.6"],"introduced":["0"],"last_affected":[],"package":"verbb/formie","purl":null,"source":"GHSA-v45m-hxqp-fwf5"},{"ecosystem":"Packagist","fixed":["2.1.6"],"introduced":["0"],"last_affected":[],"package":"verbb/formie","purl":"pkg:composer/verbb/formie","source":"GHSA-v45m-hxqp-fwf5"}],"prev":{"headline":"Asterisk' res_pjsip_endpoint_identifier_ip: wrongly matches ALL unauthorized SIP requests","id":"CVE-2024-35190"},"products":["formie"],"published":"2024-05-20","related":[{"cvss_score":5.3,"headline":"Formie has a XSS vulnerability for importing forms","id":"CVE-2025-32427","kev_date_added":null,"published":"2025-04-11"},{"cvss_score":4.6,"headline":"Formie has a XSS vulnerability for email notification content for preview","id":"CVE-2025-32426","kev_date_added":null,"published":"2025-04-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["verbb"]},"summary":"Users with form settings access can inject malicious Twig code into fields, leading to remote code execution upon submission or rendering.","url":"https://insights.sbomify.com/CVE-2024-35191/"}