CVE-2022-0666: CRLF Injection in microweber
7.6
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.95453%
CWE
Published
2/19/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
microweber/microweber | composer | < 1.2.11 | 1.2.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the redirect method's handling of user-supplied URLs. The original code validated URLs with filter_var(FILTER_VALIDATE_URL) but didn't sanitize CR/LF characters. The patch explicitly adds str_replace calls to remove \r and \n, indicating these characters weren't properly neutralized before. The function's role in processing redirect URLs makes it the injection point for CRLF sequences, which aligns with the CWE-93 description and the commit's security-focused message.