CVE-2021-23772
HIGH 8.8CVSS 3.1Link Following in Iris
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
- 24 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-59
- Also known as
- GHSA-jcxc-rh6w-wf49GO-2022-0272
- Sources
- NVDJSONOSV GHSA-jcxc-rh6w-wf49JSONOSV GO-2022-0272JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:*:*:*:*:*:go:*:* |
<= 12.1.8 | |
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:12.2.0:alpha:*:*:*:go:*:* |
= 12.2.0 | |
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:12.2.0:alpha2:*:*:*:go:*:* |
= 12.2.0 | |
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:12.2.0:alpha3:*:*:*:go:*:* |
= 12.2.0 | |
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:12.2.0:alpha4:*:*:*:go:*:* |
= 12.2.0 | |
| NVD | iris-go | iriscpe:2.3:a:iris-go:iris:12.2.0:alpha5:*:*:*:go:*:* |
= 12.2.0 | |
| OSV | Go | github.com/kataras/iris/v12 | < 12.2.0-alpha8 | 12.2.0-alpha8 |
| OSV | Go | github.com/kataras/iris | <= 0.0.2 | |
| OSV | Go | github.com/kataras/iris | all versions |
References
- https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08 · Patch, Third Party Advisory, WEB, FIX
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23772 · ADVISORY
- https://github.com/kataras/iris · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-0272 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 24 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jan 2022)