CVE-2022-23538 User credentials leaked to third-party service via HTTP redirect in scs-library-client
Attackers with S3 access can steal user credentials via HTTP redirects in the Singularity Container Services Go client, enabling impersonation.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-23538?
CVE-2022-23538 is a medium-severity vulnerability in sylabs scs-library-client, published on 17 Jan 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
github.com/sylabs/scs-library-client is the Go client for the Singularity Container Services (SCS) Container Library Service. When the scs-library-client is used to pull a container image, with authentication, the HTTP Authorization header sent by the client to the library service may be incorrectly leaked to an S3 backing storage provider. This occurs in a specific flow, where the library service redirects the client to a backing S3 storage server, to perform a multi-part concurrent download. Depending on site configuration, the S3 service may be provided by a third party. An attacker with access to the S3 service may be able to extract user credentials, allowing them to impersonate the user. The vulnerable multi-part concurrent download flow, with redirect to S3, is only used when communicating with a Singularity Enterprise 1.x installation, or third party server implementing this flow. Interaction with Singularity Enterprise 2.x, and Singularity Container Services (cloud.sylabs.io), does not trigger the vulnerable flow. We encourage all users to update. Users who interact with a Singularity Enterprise 1.x installation, using a 3rd party S3 storage service, are advised to revoke and recreate their authentication tokens within Singularity Enterprise. There is no workaround available at this time.
Weakness: CWE-522
Which versions are affected by CVE-2022-23538?
6 open source packages ship an affected version, including github.com/sylabs/scs-library-client. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/sylabs/scs-library-client Go | All versions | 1.3.4 |
github.com/sylabs/scs-library-client Go | All versions | 1.3.4 |
github.com/sylabs/scs-library-client Go | All versions | 1.3.4 |
github.com/sylabs/scs-library-client Go | From 1.4.0 | 1.4.2 |
github.com/sylabs/scs-library-client Go | From 1.4.0 | 1.4.2 |
github.com/sylabs/scs-library-client Go | From 1.4.0 | 1.4.2 |
Linux distribution packages (1)
apptainer openSUSE:Tumbleweed | All versions | 1.1.6-1.1 |
Products include Sylabs Singularity Container Services Library.
How do I fix CVE-2022-23538?
Upgrade github.com/sylabs/scs-library-client to a fixed version for your release line: 1.3.4 or 1.4.2.
Is CVE-2022-23538 being exploited?
There is no known exploitation of CVE-2022-23538 in the wild and no public exploit code.
Sources
Also known as CLEANSTART-2024-EW02482, GHSA-7p8m-22h4-9pj7, GO-2023-1497, UBUNTU-CVE-2022-23538, openSUSE-SU-2024:12694-1.