CVE-2008-5153 Moodle vulnerable to symlink attack

Medium 6.9 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks on temporary files in Moodle's spell-check logic.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2008-5153?

CVE-2008-5153 is a medium-severity path traversal vulnerability in Moodle Moodle, published on 18 Nov 2008. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

spell-check-logic.cgi in Moodle 1.8.2 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.

Weakness: CWE-59

Which versions are affected by CVE-2008-5153?

8 open source packages ship an affected version, including moodle/moodle. It affects 1 product.

PackageAffectedFixed in
moodle/moodle PackagistFrom 1.6.01.6.9
moodle/moodle PackagistFrom 1.6.01.6.9
moodle/moodle PackagistFrom 1.7.01.7.7
moodle/moodle PackagistFrom 1.7.01.7.7
moodle/moodle PackagistFrom 1.8.01.8.8
moodle/moodle PackagistFrom 1.8.01.8.8
2 more packages
moodle/moodle PackagistFrom 1.9.01.9.4
moodle/moodle PackagistFrom 1.9.01.9.4

Products include Moodle Moodle.

How do I fix CVE-2008-5153?

Upgrade moodle/moodle to a fixed version for your release line: 1.6.9, 1.7.7, 1.8.8 or 1.9.4.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2008-5153 being exploited?

There is no known exploitation of CVE-2008-5153 in the wild and no public exploit code.

All Moodle Moodle vulnerabilities

Sources

Also known as GHSA-x7r4-26m9-hmgq.

Is CVE-2008-5153 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free