CVE-2021-32742
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_MCVSS: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
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T13:01:33.975Z | CVE Program |
| epss | verified | 2026-11-19T16:04:30.739Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:59:43.997Z | OSV |
| affected | verified | 2026-11-19T13:01:33.975Z | CVE Program |
| lifecycle | verified | 2026-11-19T13:01:33.975Z | CVE 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 JSONOSV · 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 JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | SwiftURL / package | github.com/vapor/vapor | Not a distribution channel | 4.47.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T13:01:33.975ZArchived source JSON
Source publication: 2021-07-09T14:00:11.000Z
Source modification: 2024-08-03T23:33:54.911ZDocument fingerprint
c48a75c439e7895c0e4dbeb5b4288944221a12837ab237a9cd77e3ba299d4722 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:59:43.997ZArchived source JSON
Source publication: 2023-06-09T19:31:54.000Z
Source modification: 2026-07-08T06:29:25.268ZDocument fingerprint
c0f05e3d3c9e87345a9d225bd6180420dd43f32f8abcddafd01864ddbad15b44 - FIRST EPSSConsulted: 2026-11-19T16:04:30.739ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
8b22e3d0bbbe22a3c52f8c688c42204480fc90c949431dad186ebe9ca81245a8
Official status history
- UNKNOWN → PUBLISHED · · evidence