CVE-2021-23772 json
Arbitrary File Write
published 2021-12-24 4 y ago modified 2026-06-17 4 mo ago also GHSA-jcxc-rh6w-wf49 , GO-2022-0272 , EUVD-2022-0626
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/kataras/iris/v12 12.2.0-alpha8
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23772 updated cvss 8.8
kataras/iris: unsafe handling of file names during upload using UploadFormFiles method may allow attackers to write to arbitrary locations outside the designated target folder
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/kataras/iris/v12 | <12.2.0-alpha8 |
12.2.0-alpha8 |
| go | github.com/kataras/iris | <=0.0.2 all versions |
no fix listed |
Affected products
- n/a github.com/kataras/iris
- n/a github.com/kataras/iris/v12
Classification
- Weakness
-
- CWE-59 Improper Link Resolution Before File Access
References
-
github.com
/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170
web, exploit, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23772
advisory
-
github.com
/kataras/iris
package
-
pkg.go.dev
/vuln/GO-2022-0272
web
Sources
- CVE List CVE-2021-23772
- GitHub Advisory GHSA-jcxc-rh6w-wf49
- NVD CVE-2021-23772
- OSV GO-2022-0272
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.