---
title: "CVE-2009-0502\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2009-0502?format=md
keywords: index, follow
---

# CVE-2009-0502

Publication date 9 February 2009

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

Cross-site scripting (XSS) vulnerability in blocks/html/block\_html.php in
Snoopy 1.2.3, as used in Moodle 1.6 before 1.6.9, 1.7 before 1.7.7, 1.8
before 1.8.8, and 1.9 before 1.9.4, allows remote attackers to inject
arbitrary web script or HTML via an HTML block, which is not properly
handled when the "Login as" feature is used to visit a MyMoodle or Blog
page.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| moodle | 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Fixed 1.8.2-1.2ubuntu2.1 |
| 8.04 LTS hardy | Fixed 1.8.2-1ubuntu4.2 |
| 7.10 gutsy | Ignored end of life, was needed |
| 6.06 LTS dapper | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0502)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2009-0502)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2009-0502)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2009-0502)

### Related Ubuntu Security Notices (USN)

+ [USN-791-1](https://usn.ubuntu.com/USN-791-1)
+ Moodle vulnerabilities
+ 24 June 2009

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2009-0502>
