GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2024-45691 (GCVE-0-2024-45691)

Vulnerability from cvelistv5 – Published: 2024-11-20 10:25 – Updated: 2024-11-20 19:17
VLAI
Title
Moodle: lesson activity password bypass through php loose comparison
Summary
A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to "magic hash" values.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-11-20 19:17 UTC
References
Impacted products
Vendor Product Version CPE status
Affected: 0 , < 4.1.13 (semver)
Affected: 4.2 , < 4.2.10 (semver)
Affected: 4.3 , < 4.3.7 (semver)
Affected: 4.4 , < 4.4.3 (semver)
Date Public
2024-09-09 00:00
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-45691",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-11-20T19:17:16.356151Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-11-20T19:17:19.480Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://github.com/moodle/moodle",
          "defaultStatus": "unaffected",
          "packageName": "moodle",
          "versions": [
            {
              "lessThan": "4.1.13",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "4.2.10",
              "status": "affected",
              "version": "4.2",
              "versionType": "semver"
            },
            {
              "lessThan": "4.3.7",
              "status": "affected",
              "version": "4.3",
              "versionType": "semver"
            },
            {
              "lessThan": "4.4.3",
              "status": "affected",
              "version": "4.4",
              "versionType": "semver"
            }
          ]
        }
      ],
      "datePublic": "2024-09-09T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to \"magic hash\" values."
        }
      ],
      "metrics": [
        {
          "other": {
            "content": {
              "namespace": "https://access.redhat.com/security/updates/classification/",
              "value": "Important"
            },
            "type": "Red Hat severity rating"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-11-20T10:25:30.380Z",
        "orgId": "92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5",
        "shortName": "fedora"
      },
      "references": [
        {
          "name": "RHBZ#2309940",
          "tags": [
            "issue-tracking",
            "x_refsource_REDHAT"
          ],
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2309940"
        },
        {
          "url": "https://moodle.org/security/"
        }
      ],
      "timeline": [
        {
          "lang": "en",
          "time": "2024-09-04T22:12:05.832Z",
          "value": "Reported to Red Hat."
        },
        {
          "lang": "en",
          "time": "2024-09-09T00:00:00.000Z",
          "value": "Made public."
        }
      ],
      "title": "Moodle: lesson activity password bypass through php loose comparison"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5",
    "assignerShortName": "fedora",
    "cveId": "CVE-2024-45691",
    "datePublished": "2024-11-20T10:25:30.380Z",
    "dateReserved": "2024-09-04T22:00:30.976Z",
    "dateUpdated": "2024-11-20T19:17:19.480Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-45691",
      "date": "2026-09-18",
      "epss": "0.00414",
      "percentile": "0.35392"
    },
    "fkie_nvd": {
      "descriptions": [
        {
          "lang": "en",
          "value": "A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to \"magic hash\" values."
        },
        {
          "lang": "es",
          "value": "Se encontr\u00f3 una falla en Moodle. Al restringir el acceso a una actividad de lecci\u00f3n con una contrase\u00f1a, ciertas contrase\u00f1as pod\u00edan ser ignoradas o menos seguras debido a una comparaci\u00f3n poco precisa en la l\u00f3gica de verificaci\u00f3n de contrase\u00f1as. Este problema solo afectaba a las contrase\u00f1as configuradas con valores de \"hash m\u00e1gico\"."
        }
      ],
      "id": "CVE-2024-45691",
      "lastModified": "2024-11-21T13:57:24.187",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 2.5,
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "type": "Secondary"
          }
        ]
      },
      "published": "2024-11-20T11:15:05.490",
      "references": [
        {
          "source": "patrick@puiterwijk.org",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2309940"
        },
        {
          "source": "patrick@puiterwijk.org",
          "url": "https://moodle.org/security/"
        }
      ],
      "sourceIdentifier": "patrick@puiterwijk.org",
      "vulnStatus": "Awaiting Analysis"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://github.com/moodle/moodle",
                "defaultStatus": "unaffected",
                "packageName": "moodle",
                "versions": [
                  {
                    "lessThan": "4.1.13",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "4.2.10",
                    "status": "affected",
                    "version": "4.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "4.3.7",
                    "status": "affected",
                    "version": "4.3",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "4.4.3",
                    "status": "affected",
                    "version": "4.4",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "patrick@puiterwijk.org"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "FFA99B07-9756-4DF8-A807-72D175B485F8",
                    "versionEndExcluding": "4.1.13",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "9BA66423-C6E4-4083-A957-D8DAC924FA7D",
                    "versionEndExcluding": "4.2.10",
                    "versionStartIncluding": "4.2.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "22C8E2F5-D5D6-4309-91AB-C5AF23255D2C",
                    "versionEndExcluding": "4.3.7",
                    "versionStartIncluding": "4.3.0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "5CD03E57-232E-442C-B1E0-9C0974006F78",
                    "versionEndExcluding": "4.4.3",
                    "versionStartIncluding": "4.4.0",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to \"magic hash\" values."
          },
          {
            "lang": "es",
            "value": "Se encontr\u00f3 una falla en Moodle. Al restringir el acceso a una actividad de lecci\u00f3n con una contrase\u00f1a, ciertas contrase\u00f1as pod\u00edan ser ignoradas o menos seguras debido a una comparaci\u00f3n poco precisa en la l\u00f3gica de verificaci\u00f3n de contrase\u00f1as. Este problema solo afectaba a las contrase\u00f1as configuradas con valores de \"hash m\u00e1gico\"."
          }
        ],
        "id": "CVE-2024-45691",
        "lastModified": "2026-06-17T07:54:40.033",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 2.5,
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2024-45691",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-11-20T19:17:16.356151Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2024-11-20T11:15:05.490",
        "references": [
          {
            "source": "patrick@puiterwijk.org",
            "tags": [
              "Issue Tracking"
            ],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2309940"
          },
          {
            "source": "patrick@puiterwijk.org",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "https://moodle.org/security/"
          }
        ],
        "sourceIdentifier": "patrick@puiterwijk.org",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "NVD-CWE-noinfo"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "current_release_date": "2025-11-21T14:20:17+00:00",
      "cve": "CVE-2024-45691",
      "id": "CVE-2024-45691",
      "initial_release_date": "2024-09-09T00:00:00+00:00",
      "product_status:known_not_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "moodle: Lesson activity password bypass through PHP loose comparison",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-45691.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "NETWORK",
                  "availabilityImpact": "NONE",
                  "baseScore": 5.4,
                  "baseSeverity": "MEDIUM",
                  "confidentialityImpact": "LOW",
                  "integrityImpact": "LOW",
                  "privilegesRequired": "LOW",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-45691",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-11-20T19:17:16.356151Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "problemTypes": [
              {
                "descriptions": [
                  {
                    "description": "CWE-noinfo Not enough information",
                    "lang": "en",
                    "type": "CWE"
                  }
                ]
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-11-20T19:17:11.524Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://github.com/moodle/moodle",
              "defaultStatus": "unaffected",
              "packageName": "moodle",
              "versions": [
                {
                  "lessThan": "4.1.13",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "4.2.10",
                  "status": "affected",
                  "version": "4.2",
                  "versionType": "semver"
                },
                {
                  "lessThan": "4.3.7",
                  "status": "affected",
                  "version": "4.3",
                  "versionType": "semver"
                },
                {
                  "lessThan": "4.4.3",
                  "status": "affected",
                  "version": "4.4",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "datePublic": "2024-09-09T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to \"magic hash\" values."
            }
          ],
          "metrics": [
            {
              "other": {
                "content": {
                  "namespace": "https://access.redhat.com/security/updates/classification/",
                  "value": "Important"
                },
                "type": "Red Hat severity rating"
              }
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-11-20T10:25:30.380Z",
            "orgId": "92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5",
            "shortName": "fedora"
          },
          "references": [
            {
              "name": "RHBZ#2309940",
              "tags": [
                "issue-tracking",
                "x_refsource_REDHAT"
              ],
              "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2309940"
            },
            {
              "url": "https://moodle.org/security/"
            }
          ],
          "timeline": [
            {
              "lang": "en",
              "time": "2024-09-04T22:12:05.832Z",
              "value": "Reported to Red Hat."
            },
            {
              "lang": "en",
              "time": "2024-09-09T00:00:00.000Z",
              "value": "Made public."
            }
          ],
          "title": "Moodle: lesson activity password bypass through php loose comparison"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5",
        "assignerShortName": "fedora",
        "cveId": "CVE-2024-45691",
        "datePublished": "2024-11-20T10:25:30.380Z",
        "dateReserved": "2024-09-04T22:00:30.976Z",
        "dateUpdated": "2024-11-20T19:17:19.480Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…