LiveActive security incident?Get immediate response
CVE Record

CVE-2021-23772: Arbitrary File Write

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-23772 is an arbitrary file write issue in the Go Iris web framework upload helper. If an application uses the affected UploadFormFiles path for user uploads, a low-privileged attacker may be able to write files outside the intended upload folder. Business impact depends on where the app runs and what the process can write.

Executive priority

Treat this as a high-priority dependency and upload-surface review, especially for internet-facing applications with authenticated upload features. It is not confirmed actively exploited in the provided evidence, but arbitrary file write can become severe in permissive deployments.

Technical view

The issue is unsafe handling of uploaded filenames in github.com/kataras/iris and github.com/kataras/iris/v12 UploadFormFiles. The CVSS vector is 7.5 high: network reachable, high complexity, low privileges, no user interaction, with high confidentiality, integrity, and availability impact. The source bundle references an upstream commit but does not name a fixed release.

Likely exposure

Exposure is likely limited to Go applications using Iris or Iris v12 and specifically accepting untrusted file uploads through UploadFormFiles. Applications that include Iris but do not use this upload helper are not shown exposed by the provided sources.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation. Exploitation requires low privileges and high complexity according to CVSS. Successful abuse could write outside the designated upload directory, with impact shaped by filesystem permissions and deployment layout.

Researcher notes

The evidence identifies affected packages and the vulnerable API pattern, but not a fixed version. Validate exposure by combining dependency inventory with code-level UploadFormFiles usage. Avoid assuming every Iris application is exploitable without the upload code path and filesystem context.

Mitigation direction

  • Check Snyk and Iris upstream guidance for the fixed release or confirmed remediation path.
  • Update Iris only to a version confirmed to contain the referenced upstream fix.
  • Restrict or disable affected upload endpoints until remediation is verified.
  • Reduce application filesystem write permissions around upload paths and sensitive directories.
  • Add server-side filename normalization and path containment checks where uploads are handled.

Validation and detection

  • Inventory go.mod and go.sum for github.com/kataras/iris and github.com/kataras/iris/v12.
  • Search application code for UploadFormFiles usage.
  • Map each UploadFormFiles caller to public or authenticated upload routes.
  • Confirm whether deployed versions include upstream commit e213dba0d32ff66653e0ef124bc5088817264b08.
  • Review runtime permissions for directories writable by the web application process.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-23772 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H1.65.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-23772Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/agithub.com/kataras/iris0Listed
n/agithub.com/kataras/iris/v120Listed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.