# CVE-2021-23772: Arbitrary File Write

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-24T12:05:14.635Z
- Modified: 2026-06-17T03:38:52.827Z
- Also known as: GHSA-jcxc-rh6w-wf49, GO-2022-0272
- Weaknesses: CWE-59
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- github.com/kataras/iris: before unspecified
- github.com/kataras/iris/v12: before unspecified
- github.com/kataras/iris/v12 (Go): before 12.2.0-alpha8
- github.com/kataras/iris (Go): up to 0.0.2; all versions
- iris-go iris: up to 12.1.8; 12.2.0

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <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://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08> (fix, 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)

## Sources

- CVE List: [CVE-2021-23772](https://www.cve.org/CVERecord?id=CVE-2021-23772), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-jcxc-rh6w-wf49](https://github.com/advisories/GHSA-jcxc-rh6w-wf49), CC-BY-4.0, modified 2025-01-14
- Go Vulnerability Database: [GO-2022-0272](https://pkg.go.dev/vuln/GO-2022-0272), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23772](https://nvd.nist.gov/vuln/detail/CVE-2021-23772), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23772 · Whole record: https://cve.day/CVE-2021-23772.json · Rebuilt by cve.day 2026-11-25T22:58:06.158Z
