Vulnerability · Published Jan 17, 2023 · Assigned by GitHub_M

CVE-2022-23538User credentials leaked to third-party service via HTTP redirect in scs-library-client

Medium 5.2

In plain English

A medium-severity security flaw in scs-library-client from sylabs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.2Medium
Exploit odds (30 days)0.7%top 45.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20apptainer1.1.6-r0ALPINE-CVE-2022-23538
Alpine:v3.21apptainer1.1.6-r0ALPINE-CVE-2022-23538
Alpine:v3.22apptainer1.1.6-r0ALPINE-CVE-2022-23538
Alpine:v3.23apptainer1.1.6-r0ALPINE-CVE-2022-23538
Alpine:v3.24apptainer1.1.6-r0ALPINE-CVE-2022-23538
Gogithub.com/sylabs/scs-library-client1.3.4GO-2023-1497
Gogithub.com/sylabs/scs-library-client1.4.2GO-2023-1497
Gogithub.com/sylabs/scs-library-client1.4.2GHSA-7p8m-22h4-9pj7
Gogithub.com/sylabs/scs-library-client1.3.4GHSA-7p8m-22h4-9pj7
Ubuntu:25.10singularity-containerno fix listedUBUNTU-CVE-2022-23538
Ubuntu:26.04:LTSsingularity-containerno fix listedUBUNTU-CVE-2022-23538

Affected products (as reported)

VendorProductVersions
sylabs scs-library-client < 1.34>= 1.4.0, < 1.4.2

Weakness: CWE-522 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N

References