CVE-2022-0332CWE-89

A flaw was found in Moodle in versions 3.11 to 3.11.4

published January 25, 2022

CVSS
—
EPSS
44%
Percentile
98.8
In the wild
Unconfirmed
What it is

⚠️ SQL injection is within reach! A flaw in Moodle versions 3.11 to 3.11.4 could let attackers manipulate the database with a crafted request — think of it as sneaking a fake order into a restaurant that could lead to a disastrous menu disaster! 🍽️ Imagine a restaurant where a clever diner slips a fake ticket into the kitchen, causing the chefs to prepare all the wrong dishes — that's what this SQL injection flaw in Moodle's h5p activity web service is like, allowing unauthorized access to sensitive user data. The consequences of this vulnerability could be significant. An attacker could exploit this flaw to access and manipulate user attempt data, potentially leading to unauthorized data exposure or even data loss. This could undermine user trust and disrupt educational integrity.

Put simply

Imagine a restaurant where a clever diner slips a fake ticket into the kitchen, causing the chefs to prepare all the wrong dishes — that's what this SQL injection flaw in Moodle's h5p activity web service is like, allowing unauthorized access to sensitive user data. This SQL injection risk arises when the h5p activity web service fetches user attempt data without properly validating input, allowing crafted SQL queries to be executed against the database.

What to do

The consequences of this vulnerability could be significant. An attacker could exploit this flaw to access and manipulate user attempt data, potentially leading to unauthorized data exposure or even data loss. This could undermine user trust and disrupt educational integrity. To fix this issue, update Moodle to version 3.11.5 or later immediately. Additionally, audit your database queries to ensure that user inputs are sanitized and prepared statements are used to prevent future risks. 🛡️ You've got this! By taking these steps, you'll bolster your Moodle environment and keep your data secure. 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.44005 · 98.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2022-01-25T19:11Z
EPSS history
Timeline
  • 25 JAN 19:11Z
    A flaw was found in Moodle in versions 3.11 to 3.11.4
    cvelistv5