VYPR
Unrated severityNVD Advisory· Published Sep 5, 2012· Updated Apr 29, 2026

CVE-2012-4394

CVE-2012-4394

Description

OwnCloud before 4.0.5 is vulnerable to XSS via unsanitized file names in the file list view.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

OwnCloud before 4.0.5 is vulnerable to XSS via unsanitized file names in the file list view.

Vulnerability

A reflected cross-site scripting (XSS) vulnerability exists in ownCloud versions before 4.0.5. The flaw resides in apps/files/js/filelist.js, specifically where a file name is inserted into the href attribute of a download link without proper sanitization. The vulnerable version constructs HTML using the file name directly, allowing an attacker to inject arbitrary HTML or JavaScript. The fix (commit d203fa2) adds encoding of < and > characters in the directory path and file name [3].

Exploitation

An attacker must be able to upload or create a file with a malicious name containing HTML or JavaScript payloads (e.g., "). The victim must then view the file list in the ownCloud web interface, which triggers the injected script when the page renders the file name. No user interaction beyond viewing the file list is required, and no special privileges are needed beyond the ability to place a file in a directory visible to the victim.

Impact

Successful exploitation allows the attacker to execute arbitrary web script or HTML in the victim's browser within the security context of the ownCloud application. This could lead to session hijacking, credential theft, or other client-side attacks. The impact is limited to the victim's browser session and does not grant server-side code execution [1][2].

Mitigation

The vulnerability is fixed in ownCloud version 4.0.5, released on or before September 5, 2012. Users should upgrade to version 4.0.5 or later. No workarounds are documented in the available references. ownCloud has issued security advisories for related CVE-2012-2398 and CVE-2012-2269 [1][2].

AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

10
  • OwnCloud/Owncloud2 versions
    cpe:2.3:a:owncloud:owncloud:*:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:owncloud:owncloud:*:*:*:*:*:*:*:*range: <=4.0.4
    • (no CPE)range: <4.0.5
  • OwnCloud/Server8 versions
    cpe:2.3:a:owncloud:owncloud_server:3.0.0:*:*:*:*:*:*:*+ 7 more
    • cpe:2.3:a:owncloud:owncloud_server:3.0.0:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:3.0.1:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:3.0.2:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:3.0.3:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:4.0.0:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:4.0.1:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:4.0.2:*:*:*:*:*:*:*
    • cpe:2.3:a:owncloud:owncloud_server:4.0.3:*:*:*:*:*:*:*

Patches

1

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.