Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23538
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 04:16 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 17 Jan 2023, 20:06 UTC

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.

osv:CVE-2022-23538
Complete source record
{
  "id": "9c97bad31bdfdd71a21f5575e914e46c2cc6f0b703c7e8d8815a76df1e533074",
  "url": "https://osv.dev/vulnerability/CVE-2022-23538",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "User credentials leaked to third-party service via HTTP redirect in scs-library-client",
    "summary": "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.",
    "evidence": "osv:CVE-2022-23538",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-23538",
      "aliases": [
        "CVE-2022-23538",
        "GHSA-7p8m-22h4-9pj7",
        "GO-2023-1497"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sylabs/scs-library-client",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2dba38ce03df293d1a26fe1bf4310373bc876ce8"
                },
                {
                  "fixed": "b5db2aacba6bf1231f42dd475cc32e6355ab47b2"
                },
                {
                  "fixed": "68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa"
                },
                {
                  "fixed": "eebd7caaab310b1fa803e55b8fc1acd9dcd2d00c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.4.0"
                      },
                      {
                        "fixed": "1.4.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b5db2aacba6bf1231f42dd475cc32e6355ab47b2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "eebd7caaab310b1fa803e55b8fc1acd9dcd2d00c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.3.2",
            "1.3.3",
            "1.4.0",
            "1.4.1",
            "v1.4.1",
            "v1.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23538.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.796717282Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23538.json",
        "https://github.com/sylabs/scs-library-client/security/advisories/GHSA-7p8m-22h4-9pj7",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23538",
        "https://github.com/sylabs/scs-library-client/commit/68ac4cab5cda0afd8758ff5b5e2e57be6a22fcfa",
        "https://github.com/sylabs/scs-library-client/commit/b5db2aacba6bf1231f42dd475cc32e6355ab47b2",
        "https://github.com/sylabs/scs-library-client/commit/eebd7caaab310b1fa803e55b8fc1acd9dcd2d00c"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-522"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.34"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23538.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23538",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514592,
  "published_at": "2023-01-17T20:06:25.244+00:00"
}