CVEMETERBack to radar
OFFICIAL RECORD · Swift packages

CVE-2021-32742

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.5 · high

Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash

Vapor is a web framework for Swift. In versions 4.47.1 and prior, bug in the `Data.init(base32Encoded:)` function opens up the potential for exposing server memory and/or crashing the server (Denial of Service) for applications where untrusted data can end up in said function. Vapor does not currently use this function itself so this only impact applications that use the impacted function directly or through other dependencies. The vulnerability is patched in version 4.47.2. As a workaround, one may use an alternative to Vapor's built-in `Data.init(base32Encoded:)`.

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

Severity and exploitation evidence

EPSS: 1.199% · 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:28:52.703Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.5 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T13:01:33.975Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T13:01:33.975ZCVE Program
epssverified2026-11-19T16:04:30.739ZFIRST EPSS
patchesverified2026-11-19T12:59:43.997ZOSV
affectedverified2026-11-19T13:01:33.975ZCVE Program
lifecycleverified2026-11-19T13:01:33.975ZCVE Program

Affected versions and configuration

vapor vapor; default status: unknown: <= 4.47.1 [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": "vapor",
      "product": "vapor",
      "versions": [
        {
          "status": "affected",
          "version": "<= 4.47.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/vapor/vapor/releases/tag/4.47.2",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T23:33:54.911Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-pqwh-c2f3-vxmq",
  "aliases": [
    "CVE-2021-32742"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.47.2"
            }
          ]
        }
      ],
      "package": {
        "name": "github.com/vapor/vapor",
        "purl": "pkg:swift/github.com/vapor/vapor",
        "ecosystem": "SwiftURL"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-pqwh-c2f3-vxmq/GHSA-pqwh-c2f3-vxmq.json"
      }
    }
  ],
  "severity": [],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/vapor/vapor/security/advisories/GHSA-pqwh-c2f3-vxmq",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32742",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/vapor/vapor",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/vapor/vapor/releases/tag/4.47.2",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-502"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2021-07-09T14:15:00Z",
    "github_reviewed_at": "2023-06-09T19:31:54Z"
  }
}
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-boundarySwiftURL / packagegithub.com/vapor/vaporNot a distribution channel4.47.2Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history