{"id":"CVE-2021-31411","published":"2021-05-05T18:15:13Z","modified":"2024-09-16T18:08:17Z","title":"Insecure temporary directory usage in frontend build functionality of Vaadin 14 and 15-19","vendor":"Vaadin","product":"Vaadin","tier":"tail","description":{"text":"Insecure temporary directory usage in frontend build functionality of com.vaadin:flow-server versions 2.0.9 through 2.5.2 (Vaadin 14.0.3 through Vaadin 14.5.2), 3.0 prior to 6.0 (Vaadin 15 prior to 19), and 6.0.0 through 6.0.5 (Vaadin 19.0.0 through 19.0.4) allows local users to inject malicious code into frontend resources during application rebuilds.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14289,"provenance":"source"},"cwes":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"references":[{"url":"https://vaadin.com/security/cve-2021-31411","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vaadin/flow/pull/10640","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":2.86},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"vaadin","affectedVersions":[{"vendor":"Vaadin","product":"Vaadin","versions":[">= 14.0.3"]},{"vendor":"Vaadin","product":"flow-server","versions":[">= 2.0.9"]}],"fixedVersions":[{"vendor":"Vaadin","product":"Vaadin","versions":["19.0.0"]},{"vendor":"Vaadin","product":"flow-server","versions":["6.0.0"]}],"affected":[{"ecosystem":"Maven","package":"com.vaadin:vaadin-bom","vulnerableRanges":[">=14.0.3, <14.5.3",">=15.0.0, <19.0.5"],"patched":["14.5.3","19.0.5"],"from":["GHSA-p826-8vhq-h439"],"provenance":"source"}],"summary":{"text":"The flaw is insecure temporary directory usage in the frontend build functionality of Vaadin's flow-server component (com.vaadin:flow-server) across the affected 2.x, 3.x and 6.x release lines of the Vaadin framework. An attacker with local user access on the build system can exploit it, under high-complexity conditions and with low privileges, to inject malicious code into frontend resources during application rebuilds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:16Z"},"euvd":{"id":"EUVD-2021-1147","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-33611","published":"2021-11-02","fixed":"14.4.5","kev":false},{"cve":"CVE-2021-31405","published":"2021-04-23","fixed":"17.0.11","kev":false},{"cve":"CVE-2021-31408","published":"2021-04-23","fixed":"19.0.4","kev":false,"link":{"from":"CVE-2021-31408","to":"CVE-2021-31411","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.vaadin:vaadin-bom","fromFixed":"19.0.4","toFixed":"19.0.5","daysApart":12}]}},{"cve":"CVE-2021-31411","published":"2021-05-05","fixed":"19.0.5","kev":false},{"cve":"CVE-2021-31412","published":"2021-06-24","fixed":"19.0.9","kev":false,"link":{"from":"CVE-2021-31411","to":"CVE-2021-31412","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.vaadin:vaadin-bom","fromFixed":"14.5.3","toFixed":"14.6.2","daysApart":50},{"kind":"version-step","provenance":"source","package":"Maven:com.vaadin:vaadin-bom","fromFixed":"19.0.5","toFixed":"19.0.9","daysApart":50}]}},{"cve":"CVE-2021-33604","published":"2021-06-24","fixed":"19.0.9","kev":false,"link":{"from":"CVE-2021-31411","to":"CVE-2021-33604","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.vaadin:vaadin-bom","fromFixed":"14.5.3","toFixed":"14.6.2","daysApart":50},{"kind":"version-step","provenance":"source","package":"Maven:com.vaadin:vaadin-bom","fromFixed":"19.0.5","toFixed":"19.0.9","daysApart":50}]}}],"package":"Maven:com.vaadin:vaadin-bom"}}