{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23772","id":"CVE-2021-23772","title":"Arbitrary File Write","description":"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.","descriptionLong":"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.","published":"2021-12-24T12:05:14.635Z","updated":"2026-10-20T10:54:33.020090829Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk.io"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["github.com/kataras/iris","github.com/kataras/iris/v12"],"affectedProducts":[{"vendor":"n/a","product":"github.com/kataras/iris","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"0","versionType":"custom"}],"platforms":[]},{"vendor":"n/a","product":"github.com/kataras/iris/v12","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/kataras/iris/v12","purl":"pkg:golang/github.com/kataras/iris/v12","ranges":["<12.2.0-alpha8"],"fixed":["12.2.0-alpha8"],"advisory":"GHSA-jcxc-rh6w-wf49"},{"ecosystem":"Go","name":"github.com/kataras/iris","purl":"pkg:golang/github.com/kataras/iris","ranges":["<=0.0.2","all versions"],"fixed":[],"advisory":"GHSA-jcxc-rh6w-wf49"}],"cwes":["CWE-59"],"aliases":["GHSA-jcxc-rh6w-wf49","GO-2022-0272"],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23772","tags":["advisory"]},{"url":"https://github.com/kataras/iris","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0272","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01882,"epssPercentile":0.79924,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23772","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23772","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23772","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-jcxc-rh6w-wf49","ok":true,"note":"GHSA-jcxc-rh6w-wf49"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23772","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}