{"answers":{"affected":"2 open source packages ship an affected version, including solspace/craft-freeform. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-52122 exists.","fix":"Upgrade solspace/craft-freeform to 5.10.16 or later.","what":"CVE-2025-52122 is a critical code injection vulnerability in n/a, published on 27 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-52122 and fix it if it is affected.\n\nWhat it is: CVE-2025-52122 is a critical code injection vulnerability in n/a, published on 27 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-52122 exists.\n\nAffected packages and fixed versions:\n- solspace/craft-freeform (Packagist): affected from 5.0.0; fixed in 5.10.16\n- solspace/craft-freeform (Packagist): affected from 5.0.0; fixed in 5.10.16\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-2025-52122/ (Markdown: https://insights.sbomify.com/CVE-2025-52122/index.md)","id":"CVE-2025-52122","markdown":"https://insights.sbomify.com/CVE-2025-52122/index.md","name":"CVE-2025-52122","record":{"aliases":["GHSA-9hp3-f5g8-rccg"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"CraftCMS plugin","requires_auth":"none","summary":"An attacker with form editing access can inject arbitrary code via server-side template injection in the Freeform plugin.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"freeform","vendor":"solspace"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Freeform 5.0.0 to before 5.10.16, a plugin for CraftCMS, contains an Server-side template injection (SSTI) vulnerability, resulting in arbitrary code injection for all users that have access to editing a form (submission title).","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2025-06-06","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-06-06T09:35:04Z","kind":"github_poc","ref":"https://github.com/TimTrademark/CVE-2025-52122","stars":0,"title":"Arbitrary code injection in CraftCMS Freeform 5.0.0 \u003c 5.10.16"}],"tier":"weaponised"},"has_fix":true,"headline":"The Freeform CraftCMS plugin contains an Server-side template injection (SSTI) vulnerability","id":"CVE-2025-52122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"File upload in n/a","id":"CVE-2025-52130"},"packages":[{"ecosystem":"Packagist","fixed":["5.10.16"],"introduced":["5.0.0"],"last_affected":[],"package":"solspace/craft-freeform","purl":null,"source":"GHSA-9hp3-f5g8-rccg"},{"ecosystem":"Packagist","fixed":["5.10.16"],"introduced":["5.0.0"],"last_affected":[],"package":"solspace/craft-freeform","purl":"pkg:composer/solspace/craft-freeform","source":"GHSA-9hp3-f5g8-rccg"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2025-52101"},"products":["n/a"],"published":"2025-08-27","related":[{"cvss_score":5.1,"headline":"Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue","id":"CVE-2026-26188","kev_date_added":null,"published":"2026-02-12"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-08-27","vendors":["n/a"]},"summary":"An attacker with form editing access can inject arbitrary code via server-side template injection in the Freeform plugin.","url":"https://insights.sbomify.com/CVE-2025-52122/"}