{"id":"CVE-2021-23772","published":"2021-12-24T12:05:14Z","modified":"2024-09-16T20:03:06Z","title":"Arbitrary File Write","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects all versions of package github.com/kataras/iris; all versions of package github.com/kataras/iris/v12. The unsafe handling of file names during upload using UploadFormFiles method may enable attackers to write to arbitrary locations outside the designated target folder.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01882,"percentile":0.79985,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170","tags":["x_refsource_MISC"]},{"url":"https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":16.0},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/kataras/iris","versions":["< unspecified"]},{"vendor":"n/a","product":"github.com/kataras/iris/v12","versions":["< unspecified"]}],"affected":[{"ecosystem":"Go","package":"github.com/kataras/iris/v12","vulnerableRanges":["<12.2.0-alpha8"],"patched":["12.2.0-alpha8"],"from":["GHSA-jcxc-rh6w-wf49","GO-2022-0272"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/kataras/iris","vulnerableRanges":["<=0.0.2","all versions"],"patched":[],"from":["GHSA-jcxc-rh6w-wf49","GO-2022-0272"],"provenance":"source"}],"summary":{"text":"The flaw is an unsafe handling of file names in the UploadFormFiles method of the Go web framework github.com/kataras/iris, which affects its v12 line as well. An attacker who can reach an upload endpoint that uses this method, with low privileges, can write files to arbitrary locations outside the intended target folder, and the attack is complex to carry out.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:13Z"},"euvd":{"id":"EUVD-2022-0626","exploited":false,"provenance":"source"}}