{"answers":{"affected":"2 open source packages ship an affected version, including org.thingsboard:thingsboard. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45303 exists.","fix":"Upgrade org.thingsboard:thingsboard to 3.5 or later.","what":"CVE-2023-45303 is a high-severity code injection vulnerability in n/a, published on 6 Oct 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-45303 and fix it if it is affected.\n\nWhat it is: CVE-2023-45303 is a high-severity code injection vulnerability in n/a, published on 6 Oct 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45303 exists.\n\nAffected packages and fixed versions:\n- org.thingsboard:thingsboard (Maven): affected all versions; fixed in 3.5\n- org.thingsboard:thingsboard (Maven): affected all versions; fixed in 3.5\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-2023-45303/ (Markdown: https://insights.sbomify.com/CVE-2023-45303/index.md)","id":"CVE-2023-45303","markdown":"https://insights.sbomify.com/CVE-2023-45303/index.md","name":"CVE-2023-45303","record":{"aliases":["GHSA-6pgr-j9v4-xfvv"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"IoT platform","requires_auth":"high_privilege","summary":"Attackers with email template modification rights can execute arbitrary code via Server-Side Template Injection in ThingsBoard.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"thingsboard","vendor":"thingsboard"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:H/S:C/UI:R","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"ThingsBoard before 3.5 allows Server-Side Template Injection if users are allowed to modify an email template, because Apache FreeMarker supports freemarker.template.utility.Execute (for content sent to the /api/admin/settings endpoint).","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ThingsBoard Server-Side Template Injection","id":"CVE-2023-45303","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"Code injection in fsevents","id":"CVE-2023-45311"},"packages":[{"ecosystem":"Maven","fixed":["3.5"],"introduced":["0"],"last_affected":[],"package":"org.thingsboard:thingsboard","purl":null,"source":"GHSA-6pgr-j9v4-xfvv"},{"ecosystem":"Maven","fixed":["3.5"],"introduced":["0"],"last_affected":[],"package":"org.thingsboard:thingsboard","purl":"pkg:maven/org.thingsboard/thingsboard","source":"GHSA-6pgr-j9v4-xfvv"}],"prev":{"headline":"Captcha verification bypass in github.com/mojocn/base64Captcha","id":"CVE-2023-45292"},"products":["n/a"],"published":"2023-10-06","related":[{"cvss_score":9.6,"headline":"Cross-site scripting in n/a","id":"CVE-2022-40004","kev_date_added":null,"published":"2022-12-15"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2022-45608","kev_date_added":null,"published":"2023-03-01"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2022-48341","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":8.8,"headline":"Open redirect in n/a","id":"CVE-2020-27687","kev_date_added":null,"published":"2020-12-18"},{"cvss_score":8.1,"headline":"Hardcoded credentials in n/a","id":"CVE-2023-26462","kev_date_added":null,"published":"2023-02-23"},{"cvss_score":6.9,"headline":"ThingsBoard \u003c v4.2.1 SVG Image SSRF","id":"CVE-2025-34282","kev_date_added":null,"published":"2025-10-17"}],"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":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-19","vendors":["n/a"]},"summary":"Attackers with email template modification rights can execute arbitrary code via Server-Side Template Injection in ThingsBoard.","url":"https://insights.sbomify.com/CVE-2023-45303/"}