Invision · Invision Gallery · CVE-2006-5205
**Name of the Vulnerable Software and Affected Versions**
Invision Gallery version 2.0.7
**Description**
A directory traversal issue allows remote attackers to read arbitrary files by using a .. (dot dot) sequence in the `dir` parameter in "index.php" and "forum/index.php", when the viewimage command in the gallery module is used.
**Recommendations**
For Invision Gallery version 2.0.7, consider restricting access to the `dir` parameter in the affected API endpoints "index.php" and "forum/index.php" to minimize the risk of exploitation. As a temporary workaround, avoid using the `viewimage` command in the gallery module until a patch is available.