CVEMETERBack to radar
OFFICIAL RECORD · Java packages

CVE-2021-22118

PUBLISHEDOfficial status check: verifiedCVSS unknown: unknown · unknown

Java packages · CVE-2021-22118

In Spring Framework, versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, a WebFlux application is vulnerable to a privilege escalation: by (re)creating the temporary storage directory, a locally authenticated malicious user can read or modify files that have been uploaded to the WebFlux application, or overwrite arbitrary files with multipart request data.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.381% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssunknownunknownunknown
epssverified2026-11-19T18:27:05.361ZFIRST EPSS
patchesverified2026-11-19T12:52:09.783ZOSV
affectedverified2026-11-19T12:55:41.999ZCVE Program
lifecycleverified2026-11-19T12:55:41.999ZCVE Program

Affected versions and configuration

n/a Spring Framework; default status: unknown: Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "n/a",
      "product": "Spring Framework",
      "versions": [
        {
          "status": "affected",
          "version": "Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://tanzu.vmware.com/security/cve-2021-22118",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.oracle.com//security-alerts/cpujul2021.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://security.netapp.com/advisory/ntap-20210713-0005/",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.oracle.com/security-alerts/cpujan2022.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.oracle.com/security-alerts/cpujul2022.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T18:30:23.944Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-gfwj-fwqj-fp3v",
  "aliases": [
    "CVE-2021-22118"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "5.2.0"
            },
            {
              "fixed": "5.2.15"
            }
          ]
        }
      ],
      "package": {
        "name": "org.springframework:spring-web",
        "purl": "pkg:maven/org.springframework/spring-web",
        "ecosystem": "Maven"
      },
      "versions": [
        "5.2.0.RELEASE",
        "5.2.1.RELEASE",
        "5.2.10.RELEASE",
        "5.2.11.RELEASE",
        "5.2.12.RELEASE",
        "5.2.13.RELEASE",
        "5.2.14.RELEASE",
        "5.2.2.RELEASE",
        "5.2.3.RELEASE",
        "5.2.4.RELEASE",
        "5.2.5.RELEASE",
        "5.2.6.RELEASE",
        "5.2.7.RELEASE",
        "5.2.8.RELEASE",
        "5.2.9.RELEASE"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gfwj-fwqj-fp3v/GHSA-gfwj-fwqj-fp3v.json",
        "last_known_affected_version_range": "<= 5.2.14"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "5.3.0"
            },
            {
              "fixed": "5.3.7"
            }
          ]
        }
      ],
      "package": {
        "name": "org.springframework:spring-web",
        "purl": "pkg:maven/org.springframework/spring-web",
        "ecosystem": "Maven"
      },
      "versions": [
        "5.3.0",
        "5.3.1",
        "5.3.2",
        "5.3.3",
        "5.3.4",
        "5.3.5",
        "5.3.6"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-gfwj-fwqj-fp3v/GHSA-gfwj-fwqj-fp3v.json",
        "last_known_affected_version_range": "<= 5.3.6"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-22118",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/spring-projects/spring-framework/issues/26931",
      "type": "WEB"
    },
    {
      "url": "https://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac",
      "type": "WEB"
    },
    {
      "url": "https://github.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1",
      "type": "WEB"
    },
    {
      "url": "https://github.com/spring-projects/spring-framework",
      "type": "PACKAGE"
    },
    {
      "url": "https://security.netapp.com/advisory/ntap-20210713-0005",
      "type": "WEB"
    },
    {
      "url": "https://spring.io/security/cve-2021-22118",
      "type": "WEB"
    },
    {
      "url": "https://tanzu.vmware.com/security/cve-2021-22118",
      "type": "WEB"
    },
    {
      "url": "https://www.oracle.com//security-alerts/cpujul2021.html",
      "type": "WEB"
    },
    {
      "url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
      "type": "WEB"
    },
    {
      "url": "https://www.oracle.com/security-alerts/cpujan2022.html",
      "type": "WEB"
    },
    {
      "url": "https://www.oracle.com/security-alerts/cpujul2022.html",
      "type": "WEB"
    },
    {
      "url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-269",
      "CWE-668"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2021-05-27T15:15:00Z",
    "github_reviewed_at": "2022-06-22T18:24:11Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryMaven / packageorg.springframework:spring-webNot a distribution channel5.2.15Official record
ecosystem-boundaryMaven / packageorg.springframework:spring-webNot a distribution channel5.3.7Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history