Vulnerability Details : CVE-2022-23598
Potential exploit
laminas-form is a package for validating and displaying simple and complex forms. When rendering validation error messages via the `formElementErrors()` view helper shipped with laminas-form, many messages will contain the submitted value. However, in laminas-form prior to version 3.1.1, the value was not being escaped for HTML contexts, which could potentially lead to a reflected cross-site scripting attack. Versions 3.1.1 and above contain a patch to mitigate the vulnerability. A workaround is available. One may manually place code at the top of a view script where one calls the `formElementErrors()` view helper. More information about this workaround is available on the GitHub Security Advisory.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2022-23598
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*
- cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*
- cpe:2.3:a:getlaminas:laminas-form:3.1.0:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-23598
0.38%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 58 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-23598
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:N |
8.6
|
2.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2022-23598
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by:
- nvd@nist.gov (Secondary)
- security-advisories@github.com (Primary)
References for CVE-2022-23598
-
https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375
Reflected XSS vulnerability when rendering error messages in laminas-form · Advisory · laminas/laminas-form · GitHubMitigation;Third Party Advisory
-
https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37
Merge pull request from GHSA-jq4p-mq33-w375 · laminas/laminas-form@43005a3 · GitHubPatch;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/
[SECURITY] Fedora 35 Update: php-laminas-form-2.17.1-1.fc35 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/
[SECURITY] Fedora 34 Update: php-laminas-form-2.17.1-1.fc34 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://getlaminas.org/security/advisory/LP-2022-01
Security Advisories - Laminas Project - Enterprise PHP FrameworkMitigation;Third Party Advisory
Jump to