{"id":"CVE-2021-23772","details":"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.","aliases":["GHSA-jcxc-rh6w-wf49","GO-2022-0272"],"modified":"2026-07-08T05:57:08.178918758Z","published":"2021-12-24T12:15:07.697Z","related":["SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169","SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"],"database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","vendor_product":"iris-go:iris","cpes":["cpe:2.3:a:iris-go:iris:12.2.0:alpha2:*:*:*:go:*:*","cpe:2.3:a:iris-go:iris:12.2.0:alpha3:*:*:*:go:*:*","cpe:2.3:a:iris-go:iris:12.2.0:alpha4:*:*:*:go:*:*","cpe:2.3:a:iris-go:iris:12.2.0:alpha5:*:*:*:go:*:*","cpe:2.3:a:iris-go:iris:12.2.0:alpha:*:*:*:go:*:*"],"extracted_events":[{"introduced":"12.2.0-alpha"},{"last_affected":"12.2.0-alpha"},{"introduced":"12.2.0-alpha2"},{"last_affected":"12.2.0-alpha2"},{"introduced":"12.2.0-alpha3"},{"last_affected":"12.2.0-alpha3"},{"introduced":"12.2.0-alpha4"},{"last_affected":"12.2.0-alpha4"},{"introduced":"12.2.0-alpha5"},{"last_affected":"12.2.0-alpha5"}]}]},"references":[{"type":"FIX","url":"https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/kataras/iris","events":[{"introduced":"0"},{"last_affected":"08403f0317e7d54607782a65a5344c589087cf55"},{"fixed":"e213dba0d32ff66653e0ef124bc5088817264b08"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:iris-go:iris:*:*:*:*:*:go:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"12.1.8"}]}}],"versions":["v12.1.8","v12.1.7","v12.1.6","v12.1.5","v12.1.4","v12.1.3","v12.1.2","v12.1.1","v12.0.1","v12.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23772.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}