Information Exposure Affecting github.com/sylabs/singularity/pkg Open this link in a new tab package, versions >=3.2.0 <3.6.3
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.Test your applications
21 Dec 2021
20 Dec 2021
How to fix?
github.com/sylabs/singularity/pkg to version 3.6.3 or higher.
Affected versions of this package are vulnerable to Information Exposure via insecure permissions on temporary directories used in fakeroot or user namespace container execution.
When a Singularity action command (
exec) is run with the
user namespace option,
Singularity will extract a container image to a temporary sandbox directory. Due to insecure permissions on the temporary directory it is possible for any user with access to the system to read the contents of the image. Additionally, if the image contains a world-writable file or directory, it is possible for a user to inject arbitrary content into the running container.
The issue is mitigated if
TMPDIR is set to a location that is only accessible to the user, as any subdirectories directly under
TMPDIR cannot then be accessed by others. However, this is difficult to enforce so it is not recommended to rely on this as a mitigation.