LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32679: Filenames not escaped by default in controllers using DownloadResponse

Nextcloud Server is a Nextcloud package that handles data storage. In versions prior to 19.0.13, 20.0.11, and 21.0.3, filenames where not escaped by default in controllers using `DownloadResponse`. When a user-supplied filename was passed unsanitized into a `DownloadResponse`, this could be used to trick users into downloading malicious files with a benign file extension. This would show in UI behaviours where Nextcloud applications would display a benign file extension (e.g. JPEG), but the file will actually be downloaded with an executable file extension. The vulnerability is patched in versions 19.0.13, 20.0.11, and 21.0.3. Administrators of Nextcloud instances do not have a workaround available, but developers of Nextcloud apps may manually escape the file name before passing it into `DownloadResponse`.

LowCVSS 3.5Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

This Nextcloud issue can make a downloaded file look harmless in the interface while saving with a more dangerous extension. It requires a logged-in attacker and a user who downloads the file. Business risk is limited but real for organizations relying on Nextcloud file-sharing trust.

Executive priority

Treat as a routine patching item unless affected Nextcloud instances handle high-risk user uploads. Prioritize upgrade during the next maintenance window, with added attention to custom or third-party Nextcloud apps.

Technical view

Controllers using Nextcloud Server DownloadResponse did not escape filenames by default. If an application passed an unsanitized user-supplied filename, UI behavior could show a benign extension while the actual download used another extension. Fixed in 19.0.13, 20.0.11, and 21.0.3. CWE-116 applies.

Likely exposure

Exposure is most likely on Nextcloud Server instances running below 19.0.13, 20.0.11, or 21.0.3, especially where apps use DownloadResponse with user-controlled filenames.

Exploitation context

The provided sources do not show known active exploitation, and the CVE is not marked KEV. Exploitation requires authentication and user interaction, with impact limited to file-download deception and low integrity impact.

Researcher notes

The impact depends on whether an app passes unsanitized user-controlled filenames into DownloadResponse. Available evidence supports a low-severity output-escaping flaw, not remote code execution or unauthenticated compromise. No source in the bundle establishes exploitation in the wild.

Mitigation direction

  • Upgrade Nextcloud Server to 19.0.13, 20.0.11, 21.0.3, or later.
  • Apply Fedora or Gentoo package updates where Nextcloud is distro-managed.
  • Review custom Nextcloud apps using DownloadResponse with user-supplied filenames.
  • Developers should escape filenames before passing them into DownloadResponse.
  • Do not rely on an admin workaround; none is named in the advisory.

Validation and detection

  • Inventory Nextcloud Server versions across all managed instances.
  • Confirm no instance remains in the affected version ranges.
  • Review custom app controllers for DownloadResponse filename handling.
  • Verify user-controlled filenames are escaped before download responses.
  • Check distro advisory status if using packaged Nextcloud builds.
Prepared
Confidence
high
Sources
8

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.

cwe · medium confidence lookup

CWE-116: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. 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 lookup
cve · low confidence lookup

CVE-2021-32679 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
Low
CVSS
3.5 (3.1)
Known Exploited
No
Published

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

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
7Source 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
3.5CVSS 3.1LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N2.11.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

3.5Low
CVSS 3.1 vector shape for CVE-2021-32679Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

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

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
nextcloudsecurity-advisories< 19.0.13, >= 20.0.0, < 20.0.11, >= 21.0.0, < 21.0.3Listed
Weakness

CWE details

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

CWE-116 · source CWE mapping

Improper Encoding or Escaping of Output

Improper Encoding or Escaping of Output represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.