{"answers":{"affected":"2 open source packages ship an affected version, including org.freemarker:freemarker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-84939 in the wild and no public exploit code.","fix":"Upgrade org.freemarker:freemarker to 2.3.35 or later.","what":"CVE-2026-84939 is a critical path traversal vulnerability in Apache FreeMarker, published on 10 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-84939 and fix it if it is affected.\n\nWhat it is: CVE-2026-84939 is a critical path traversal vulnerability in Apache FreeMarker, published on 10 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-84939 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.freemarker:freemarker (Maven): affected from 2.2.0; fixed in 2.3.35\n- org.freemarker:freemarker (Maven): affected from 2.2.0; fixed in 2.3.35\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-2026-84939/ (Markdown: https://insights.sbomify.com/CVE-2026-84939/index.md)","id":"CVE-2026-84939","markdown":"https://insights.sbomify.com/CVE-2026-84939/index.md","name":"CVE-2026-84939","record":{"aliases":["CLSA-2026-1791549508","CLSA-2026-1791957648","CLSA-2026-1791959281","CLSA-2026-1793128416","CLSA-2026-1793128508","CLSA-2026-1793128764","DEBIAN-CVE-2026-84939","ECHO-53f0-ac30-bbbb","GHSA-27j2-h3m2-8237","ROOT-APP-MAVEN-CVE-2026-84939","UBUNTU-CVE-2026-84939"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java template engine","requires_auth":"none","summary":"Attackers can exploit malformed locale identifiers to perform path traversal attacks, potentially reading unauthorized files if localized lookup is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"freemarker","vendor":"apache"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"Path traversal vulnerability in Apache FreeMarker template loading mechanism, if the attacker can specify an arbitrary malformed locale identifier to FreeMarker, and the localized lookup configuration setting is enabled (it's by default enabled).\n\nThis issue affects Apache FreeMarker from 2.2.0 through 2.3.34.\n\nUsers are recommended to upgrade to version 2.3.35. Disabling localized lookup in previous versions also mitigates this.\n\nNote that even in versions affected by this vulnerability, the files that can be loaded remain restricted by the TemplateLoader that FreeMarker is configured to use. In particular, FileTemplateLoader prevents attempts to traverse outside the baseDir specified in its constructor. Other TemplateLoader implementations may allow access outside their designated base directory, but they are still constrained by the underlying storage mechanism—for example, a loader wrapping a Java class loader can only access resources that the class loader can load, while one wrapping a web application context can only access resources available through that context.","ecosystems":["Maven"],"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":"Apache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacks","id":"CVE-2026-84939","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Omada Controller XML External Entity (XXE) Injection in SAML IdP Metadata Parsing Leading to Arbitrary Local File Read","id":"CVE-2026-84941"},"packages":[{"ecosystem":"Maven","fixed":["2.3.35"],"introduced":["2.2.0"],"last_affected":[],"package":"org.freemarker:freemarker","purl":null,"source":"GHSA-27j2-h3m2-8237"},{"ecosystem":"Maven","fixed":["2.3.35"],"introduced":["2.2.0"],"last_affected":[],"package":"org.freemarker:freemarker","purl":"pkg:maven/org.freemarker/freemarker","source":"GHSA-27j2-h3m2-8237"}],"prev":{"headline":"YT Player \u003c 2.1.0 - Contributor+ SQLi via ytp_ajax","id":"CVE-2026-84937"},"products":["Apache FreeMarker"],"published":"2026-09-10","related":[],"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-10","vendors":["Apache Software Foundation"]},"summary":"Attackers can exploit malformed locale identifiers to perform path traversal attacks, potentially reading unauthorized files if localized lookup is enabled.","url":"https://insights.sbomify.com/CVE-2026-84939/"}