CVE-2008-5153: Moodle/moodle Moodle Vulnerable To Symlink Attack Vulnerability
MODERATECVE-2008-5153 is a MODERATE moodle vulnerable to symlink attack vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle vulnerable to symlink attack. Remediation is available by upgrading affected packages to version 1.9.4, 1.8.8, 1.7.7, 1.6.9.
CVE-2008-5153 at a Glance
How to Fix CVE-2008-5153
To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moodle/moodle to 1.9.4
Upgrade moodle/moodle to 1.8.8
Upgrade moodle/moodle to 1.7.7
Upgrade moodle/moodle to 1.6.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moodle/moodle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2008-5153, inspect your project dependencies for Moodle/moodle:
inspect dependencies for moodle/moodle
Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2008-5153 Affected Moodle/moodle Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
≥ 1.9.0
< 1.9.4
|
1.9.4
|
|
moodle/moodle
|
Packagist |
≥ 1.8.0
< 1.8.8
|
1.8.8
|
|
moodle/moodle
|
Packagist |
≥ 1.7.0
< 1.7.7
|
1.7.7
|
|
moodle/moodle
|
Packagist |
≥ 1.6.0
< 1.6.9
|
1.6.9
|
References
Frequently Asked Questions
What is CVE-2008-5153?
Which Moodle/moodle versions are affected?
What version fixes CVE-2008-5153?
Is moodle/moodle affected?
What CWE is associated with CVE-2008-5153?
How can I check Packagist dependencies for CVE-2008-5153?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x7r4-26m9-hmgq",
"modified" : "2024-02-09T18:57:15Z",
"published" : "2022-05-17T02:18:02Z",
"aliases" : [ "CVE-2008-5153" ],
"summary" : "Moodle vulnerable to symlink attack",
"details" : "`spell-check-logic.cgi` in Moodle 1.9 before 1.9.4, 1.8 before 1.8.8, 1.7 before 1.7.7 and 1.6 before 1.6.9 allows local users to overwrite arbitrary files via a symlink attack on the (1) `/tmp/spell-check-debug.log`, (2) `/tmp/spell-check-before`, or (3) `/tmp/spell-check-after` temporary file.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.0"
}, {
"fixed" : "1.9.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "1.8.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7.0"
}, {
"fixed" : "1.7.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6.0"
}, {
"fixed" : "1.6.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-5153"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/46708"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20090821033319/http://secunia.com/advisories/33955"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20110511083352/http://uvw.ru/report.sid.txt"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20141121115305/http://www.securityfocus.com/bid/32402"
}, {
"type" : "WEB",
"url" : "http://lists.debian.org/debian-devel/2008/08/msg00347.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2009/dsa-1724"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-09T18:57:15Z",
"nvd_published_at" : "2008-11-18T16:00:00Z"
}
}