Symlink Vulnerability in Rocks'n'Diamonds Package Allows File Overwrite

rocksndiamonds Updated 02 Oct 2025

Summary

15/12/2011
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2011-4606: Artsoft Entertainment Rocks'n'Diamonds (aka rocksndiamonds) 3.3.0.1 allows local users to overwrite arbitrary files via a symlink attack on .rocksndiamonds/cache/artworkinfo.cache under a user's home directory. Affects rocksndiamonds versions < 3.3.0.1+dfsg1-2.2. Fixed in 3.3.0.1+dfsg1-2.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Rocks'n'Diamonds is a popular open-source puzzle game that allows players to navigate through various levels while collecting diamonds and avoiding enemies. The game is designed to be engaging and challenging, featuring a variety of gameplay modes and levels. However, a vulnerability has been identified in version 3.3.0.1, which could allow local users to exploit the system's file handling capabilities.

Vulnerability Detail

The vulnerability identified as CVE-2011-4606 allows local users to overwrite arbitrary files through a symlink attack on the .rocksndiamonds/cache/artworkinfo.cache file located in a user's home directory. This flaw arises from inadequate validation of file paths, enabling attackers to create symbolic links that redirect file writes to unintended locations. The potential ramifications include unauthorized data modification and system compromise, particularly in multi-user environments.

How To Fix

Minimum fixed version

3.3.0.1+dfsg1-2.2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rocksndiamonds

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can restrict access to the .rocksndiamonds/cache directory by changing its permissions to prevent unauthorized users from creating symlinks. This can be done using the command: 'chmod 700 ~/.rocksndiamonds/cache'.

Conclusion

The vulnerability CVE-2011-4606 in the Rocks'n'Diamonds package poses a significant risk by allowing local users to overwrite files through symlink attacks. It is crucial for users to update to the patched version to mitigate this risk. Additionally, employing workarounds can help secure the system until an update can be applied.

See every vulnerability recorded for rocksndiamonds →

Share this vulnerability

FAQ

CVE-2011-4606 is a vulnerability in the Rocks'n'Diamonds package that allows local users to overwrite arbitrary files via a symlink attack.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json to Vulert, you can check for vulnerabilities without needing to install any software.

The risks include unauthorized file modification and potential system compromise, especially in environments with multiple users.

Yes, the patched version is 3.3.0.1+dfsg1-2.2. Users should update their Rocks'n'Diamonds package to this version.

If an immediate update is not possible, consider changing the permissions of the cache directory to restrict access as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for rocksndiamonds.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.3.0.1+dfsg1-2.2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rocksndiamonds

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback