CVE-2022-0962: Cross-site Scripting in ShowDoc
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57734%
CWE
Published
3/15/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
showdoc/showdoc | composer | < 2.10.4 | 2.10.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper file extension validation. The commit diff shows critical changes to AttachmentModel::upload
(added $check_filename parameter) and AttachmentModel::isAllowedFilename
(removed .webmv/.swf). The upload()
function's unconditional filename check in vulnerable versions, combined with isAllowedFilename()
's permissive allow-list, enabled malicious file uploads. The .webma
extension mentioned in the advisory may reflect a discrepancy (e.g., typo) or an unobserved code path, but the structural weakness in these functions is clear.