CVE-2023-22464: ViewVC - Stored XSS
- Cve: CVE-2023-22464
- Name: ViewVC - Stored XSS
- Description: ViewVC is a browser interface for CVS and Subversion version control repositories. Versions prior to 1.2.3 and 1.1.30 are vulnerable to cross-site scripting. The impact of this vulnerability is mitigated by the need for an attacker to have commit privileges to a Subversion repository exposed by an otherwise trusted ViewVC instance. The attack vector involves files with unsafe names (names that, when embedded into an HTML stream, would cause the browser to run unwanted code), which themselves can be challenging to create. Users should update to at least version 1.2.3 (if they are using a 1.2.x version of ViewVC) or 1.1.30 (if they are using a 1.1.x version). ViewVC 1.0.x is no longer supported, so users of that release lineage should implement one of the following workarounds. Users can edit their ViewVC EZT view templates to manually HTML-escape changed path "copyfrom paths" during rendering. Locate in your template set's `revision.ezt` file references to those changed paths, and wrap them with `[format "html"]` and `[end]`. For most users, that means that references to `[changes.copy_path]` will become `[format "html"][changes.copy_path][end]`. (This workaround should be reverted after upgrading to a patched version of ViewVC, else "copyfrom path" names will be doubly escaped.)
- Impact: Attackers with commit privileges can craft file names to execute malicious scripts in users' browsers, leading to potential session hijacking or data theft.
- Remediation: Update to version 1.2.3 or 1.1.30, or apply the provided workaround by HTML-escaping 'copyfrom paths' in templates.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs commit privileges and ability to create malicious file names
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00685
- Epss percentile: 0.53548
- Assignee: [email protected]
- Published at: 2023-01-04T16:15:09Z
- Age in days: 1420
- Modified at: 2026-06-17T05:35:30Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-22464
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/viewvc/viewvc/issues/311 | nvd | 2023-01-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/viewvc/viewvc/issues/311 | Exploit, Issue Tracking, Mitigation, Third Party Advisory |
| https://github.com/viewvc/viewvc/security/advisories/GHSA-jvpj-293q-q53h | Mitigation, Third Party Advisory |
| https://github.com/viewvc/viewvc/releases/tag/1.1.30 | Release Notes, Third Party Advisory |
| https://github.com/viewvc/viewvc/releases/tag/1.2.3 | Release Notes, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| viewvc:viewvc | >= 1.2.0, < 1.2.3; < 1.1.30 | no | nvd | /v1/products/viewvc/viewvc |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| viewvc/viewvc | issues, releases, security_advisory | yes | /v1/repositories/viewvc/viewvc |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-01-04
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts