Security readout for executives and security teams
Plain-English summary
CVE-2021-32643 lets an affected http4s service reveal whether certain server-side directories exist when StaticFile.fromUrl is used with non-file URLs. It does not expose directory contents or metadata, but it can aid reconnaissance against applications using the vulnerable helper.
Executive priority
Treat this as a moderate dependency hygiene issue, not an emergency. Prioritize remediation where public-facing services use affected http4s static-file behavior, especially if URL inputs are influenced by requests or configuration.
Technical view
In affected http4s versions, StaticFile.fromUrl checks url.getFile as a directory before validating URL scheme or authority. For fetchable non-file URLs, differing 404 behavior can disclose directory presence. Affected ranges include 0.21.7-0.21.23, 0.22.0-M1-M8, 0.23.0-M1, and 1.0.0-M1-M22.
Likely exposure
Exposure is limited to Scala services using affected http4s versions and calling StaticFile.fromUrl with non-file URLs. Services not using this helper, or using only file:// URLs, are less likely exposed based on the provided advisory.
Exploitation context
The CVSS vector is network-accessible with low complexity, no privileges, and no user interaction. The provided sources and KEV flag do not support active exploitation. Impact is limited to low confidentiality loss through directory-existence inference.
Researcher notes
The advisory states contents and other directory metadata are not exposed. Validation should focus on dependency versioning and reachable StaticFile.fromUrl call paths. Do not assume broader path traversal impact without separate evidence.
Mitigation direction
- Upgrade to http4s v0.21.24, v0.22.0-M9, v0.23.0-M2, v1.0.0-M23, or later fixed releases.
- If upgrade is delayed, avoid StaticFile.fromUrl with non-file URLs.
- Review static file code for non-file URL inputs to StaticFile.fromUrl.
- Check the http4s advisory and release notes before production rollout.
Validation and detection
- Inventory org.http4s dependencies and compare versions against the affected ranges.
- Search application code for StaticFile.fromUrl usage.
- Confirm any StaticFile.fromUrl inputs are file:// URLs or removed.
- Verify deployed artifacts use a fixed http4s version.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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.
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2021-32643 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.8 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
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.
CVSS vector scores
1 official scoreWe 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N3.91.4Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.8MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/http4s/http4s/security/advisories/GHSA-6h7w-fc84-x7p6CVE reference · x_refsource_CONFIRM
- https://github.com/http4s/http4s/commit/52e1890665410b4385e37b96bc49c5e3c708e4e9CVE reference · x_refsource_MISC
- https://mvnrepository.com/artifact/org.http4s/http4s-coreCVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
