CVE-2022-45151
PHP vulnerability analysis and mitigation

Overview

CVE-2022-45151 is a stored Cross-Site Scripting (XSS) vulnerability discovered in Moodle's social user profile fields. The vulnerability was disclosed on November 21, 2022, affecting Moodle versions 4.0 to 4.0.4 and 3.11 to 3.11.10. The issue exists due to insufficient sanitization of user-supplied data in several "social" user profile fields (Moodle Forum, NVD).

Technical details

The vulnerability stems from insufficient escaping on some fields in the "social" user profile field type. It has been assigned a CVSS score of 5.0 (Medium) with the vector (AV:N/AC:M/Au:S/C:P/I:P/A:N), indicating that the vulnerability requires network access and some privilege to exploit, with partial impacts on confidentiality and integrity (Rapid7).

Impact

When exploited, this vulnerability allows an attacker to inject and execute arbitrary HTML and script code in a user's browser in the context of the vulnerable website. This could lead to potential theft of sensitive information or manipulation of user content (CVE).

Mitigation and workarounds

The vulnerability has been fixed in Moodle versions 4.0.5 and 3.11.11. As a temporary workaround before applying the patch, administrators can update "social" user profile fields to set their visibility to "not visible". The fix was implemented through a security patch that properly sanitizes user input in social profile fields (Moodle Forum).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management