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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.2
- **CVSS:** 5.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.95% (percentile 60, 2026-11-28)
- **CWE:** CWE-522
- **Aliases:** GHSA-7p8m-22h4-9pj7, GO-2023-1497
- **Published:** 2023-01-17T20:06:25.244Z
- **Modified:** 2026-06-17T04:30:19.003Z

## Who should check

- Projects that depend on Go package github.com/sylabs/scs-library-client (\>= 1.4.0, \< 1.4.2)
- Anyone running sylabs scs-library-client \< 1.34; \>= 1.4.0, \< 1.4.2

## 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 and fixed versions

- Go `github.com/sylabs/scs-library-client`: affected \>= 1.4.0, \< 1.4.2; fixed 1.4.2, 1.3.4 (osv)
- sylabs scs-library-client: \< 1.34; \>= 1.4.0, \< 1.4.2 (cvelist)

## Mitigation

- Upgrade github.com/sylabs/scs-library-client to one of 1.4.2, 1.3.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-23538. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-23538.md
Affected: github.com/sylabs/scs-library-client >= 1.4.0, < 1.4.2
Fixed in: 1.4.2, 1.3.4

Steps:
1. Search this machine and project for github.com/sylabs/scs-library-client (Go), sylabs scs-library-client: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-23538 being exploited?

There is no confirmed exploitation: CVE-2022-23538 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.95% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2022-23538?

Medium: CVSS 5.2 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-23538?

github.com/sylabs/scs-library-client \>= 1.4.0, \< 1.4.2.

### Is there a fix for CVE-2022-23538?

Yes. Fixed in 1.4.2, 1.3.4. Upgrade github.com/sylabs/scs-library-client to one of 1.4.2, 1.3.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-23538?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/sylabs/scs-library-client/security/advisories/GHSA-7p8m-22h4-9pj7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-23538>
- patch: <https://github.com/sylabs/scs-library-client/commit/68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa>
- patch: <https://github.com/sylabs/scs-library-client/commit/b5db2aacba6bf1231f42dd475cc32e6355ab47b2>
- patch: <https://github.com/sylabs/scs-library-client/commit/eebd7caaab310b1fa803e55b8fc1acd9dcd2d00c>
- other: <https://github.com/sylabs/scs-library-client>
- other: <https://pkg.go.dev/vuln/GO-2023-1497>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-23538>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7p8m-22h4-9pj7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1497> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-23538> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-23538>
