Medium
Moodle: router produces json instead of 404 error for invalid course id
Type: advisorySources: OSV
The router’s inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, potentially aiding reconnaissance.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-62397
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 01:41 UTC · Revision 1
Source evidence
Moodle: router produces json instead of 404 error for invalid course id
core-osv · Original sourcePublished 23 Oct 2025, 11:28 UTC
The router’s inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, potentially aiding reconnaissance.
osv:CVE-2025-62397
Complete source record
{
"id": "f773f0da4ced1efc9bd7117daf63565f12a279379379a8d90d0af41be2cd3001",
"url": "https://osv.dev/vulnerability/CVE-2025-62397",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Moodle: router produces json instead of 404 error for invalid course id",
"summary": "The router’s inconsistent response to invalid course IDs allowed attackers to infer which course IDs exist, potentially aiding reconnaissance.",
"evidence": "osv:CVE-2025-62397",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-62397",
"aliases": [
"BIT-moodle-2025-62397",
"CVE-2025-62397"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/moodle/moodle",
"type": "GIT",
"events": [
{
"introduced": "78e860178314c45441a21e0b99455400b8283d48"
},
{
"fixed": "1b2d270397613a3889a24f59be0ee6d0292a7556"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v5.0.2",
"v5.0.1",
"v5.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62397.json"
}
}
],
"modified": "2026-10-28T02:30:45.849288605Z",
"provider": "osv",
"references": [
"https://git.moodle.org",
"https://access.redhat.com/security/cve/CVE-2025-62397",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62397.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-62397",
"https://bugzilla.redhat.com/show_bug.cgi?id=2404430"
],
"provider_metadata": {
"cwe_ids": [
"CWE-209"
],
"cna_assigner": "fedora",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62397.json"
}
},
"related_cves": [
{
"value": "CVE-2025-62397",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513956,
"published_at": "2025-10-23T11:28:33.922+00:00"
}