CVE-2023-50424: Github.com/sap/cloud security client go Improper Privilege Management Vulnerability

CRITICAL
Advisory Identifier: GHSA-m8rw-rcpq-2vp2
CVSS 9.1
CWE-269
Published
Advisory Summary

CVE-2023-50424 is a CRITICAL (CVSS 9.1) improper privilege management vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/sap/cloud security client go libraries in the Go ecosystem. The issue involves improper privilege management in github.com/sap/cloud-security-client-go. Remediation is available by upgrading affected packages to version 0.17.0.

CVE-2023-50424 at a Glance

CVE Identifier CVE-2023-50424
GHSA Identifier GHSA-m8rw-rcpq-2vp2
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/sap/cloud security client go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-50424

To remediate this vulnerability, upgrade all affected Github.com/sap/cloud security client go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/sap/cloud-security-client-go fixed: 0.17.0
Upgrade github.com/sap/cloud-security-client-go to 0.17.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/sap/cloud-security-client-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-50424, inspect your project dependencies for Github.com/sap/cloud security client go:

inspect dependencies for github.com/sap/cloud-security-client-go

Analyze the terminal output to locate any version of Github.com/sap/cloud security client go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/sap/cloud security client go, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact SAP BTP Security Services Integration Library ([Golang] github.com/sap/cloud-security-client-go) allows under certain conditions an escalation of privileges. On successful exploitation, an unauthenticated attacker can obtain arbitrary permissions within the application. ### Patches Upgrade to patched version >= 0.17.0 We always recommend to upgrade to the latest released version. ### Workarounds No workarounds ### References https://www.cve.org/CVERecord?id=CVE-2023-50424

CVE-2023-50424 Affected Github.com/sap/cloud security client go Versions

1 component(s)
Fixed Versions:
0.17.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sap/cloud-security-client-go
Go
< 0.17.0
0.17.0

References

Frequently Asked Questions

What is CVE-2023-50424?
CVE-2023-50424 is a security vulnerability in Github.com/sap/cloud security client go involving Improper Privilege Management in github.com/sap/cloud-security-client-go under CWE-269: Improper Privilege Management.
Which Github.com/sap/cloud security client go versions are affected?
Affected versions include releases prior to 0.17.0 across affected packages: github.com/sap/cloud-security-client-go.
What version fixes CVE-2023-50424?
Upgrading to 0.17.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sap/cloud-security-client-go affected?
Yes, github.com/sap/cloud-security-client-go is affected in releases prior to 0.17.0. Upgrade your dependency to 0.17.0 or later.
What is the CVSS score of CVE-2023-50424?
CVE-2023-50424 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-50424?
CVE-2023-50424 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2023-50424?
Run the dependency tree command: 'inspect dependencies for github.com/sap/cloud-security-client-go'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m8rw-rcpq-2vp2",
  "modified" : "2024-09-30T19:44:18Z",
  "published" : "2023-12-13T13:34:20Z",
  "aliases" : [ "CVE-2023-50424" ],
  "summary" : "Improper Privilege Management in github.com/sap/cloud-security-client-go",
  "details" : "### Impact\nSAP BTP Security Services Integration Library ([Golang] github.com/sap/cloud-security-client-go) allows under certain conditions an escalation of privileges. On successful exploitation, an unauthenticated attacker can obtain arbitrary permissions within the application.\n\n### Patches\nUpgrade to patched version >= 0.17.0\nWe always recommend to upgrade to the latest released version.\n\n### Workarounds\nNo workarounds\n\n### References\nhttps://www.cve.org/CVERecord?id=CVE-2023-50424",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/sap/cloud-security-client-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-security-client-go/security/advisories/GHSA-m8rw-rcpq-2vp2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-security-services-integration-library/security/advisories/GHSA-59c9-pxq8-9c73"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50424"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-security-client-go/commit/2e3bd63e152e09f267316a1071034eb5d4b7f498"
  }, {
    "type" : "WEB",
    "url" : "https://blogs.sap.com/2023/12/12/unveiling-critical-security-updates-sap-btp-security-note-3411067"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SAP/cloud-security-client-go"
  }, {
    "type" : "WEB",
    "url" : "https://me.sap.com/notes/3411067"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/github.com/sap/cloud-security-client-go@v0.17.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.sap.com/documents/2022/02/fa865ea4-167e-0010-bca6-c68f7e60039b.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-13T13:34:20Z",
    "nvd_published_at" : null
  }
}