Insecure temporary files In rails
Description
ActiveSupport::EncryptedFile writes contents that will be encrypted to a
temporary file. The temporary file's permissions are defaulted to the user's
current umask settings, meaning that it's possible for other users on the
same system to read the contents of the temporary file.
Attackers that have access to the file system could possibly read the contents of this temporary file while a user is editing it.
All users running an affected release should either upgrade or use one of the workarounds immediately.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 13 | 2:7.2.2.1+dfsg-1 | ||
debian 12 | 2:6.1.7.10+dfsg-1~deb12u1 | ||
debian 14 | 2:7.2.2.1+dfsg-1 | ||
rubygems | 6.1.7.5, 7.0.7.1 |
Aliases
1. 2. 3. 4. 5. 6.
References
1. 2. 3. 4. 5.