Vulnerabilities in pkg:pypi/sap-xssec

PACKAGE
Advisory Identifier: GHSA-6mjg-37cp-42x5
Advisory Summary

CVE-2023-50423 is a CRITICAL (CVSS 9.1) cross-site scripting vulnerability (CWE-269: Improper Privilege Management) affecting Sap xssec libraries in the PyPI ecosystem. The issue involves improper privilege management in sap-xssec. Remediation is available by upgrading affected packages to version 4.1.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/sap-xssec

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/sap-xssec. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6mjg-37cp-42x5 CVE-2023-50423 CRITICAL Improper Privilege Management in sap-xssec
GHSA-p99h-pfg6-qrfg - CRITICAL Duplicate Advisory: Privilege escalation in sap-xssec

CVE-2023-50423 at a Glance

CVE Identifier CVE-2023-50423
GHSA Identifier GHSA-6mjg-37cp-42x5
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-269: Improper Privilege Management
Affected Product Sap xssec
Package Ecosystem PyPI
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-50423

To remediate this vulnerability, upgrade all affected Sap xssec dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sap-xssec fixed: 4.1.0
pip install sap-xssec>=4.1.0
Verify Direct and Transitive Dependencies

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

pip show sap-xssec

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-50423, inspect your installed packages using pip:

pip show sap-xssec

Analyze the terminal output to locate any version of Sap xssec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0), your application is affected.

Note: The pip show sap-xssec command checks currently installed packages in your active Python environment.

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 Sap xssec, 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 ([Python] sap-xssec) 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 >= 4.1.0 We always recommend to upgrade to the latest released version. ### Workarounds No workarounds ### References https://www.cve.org/CVERecord?id=CVE-2023-50423

CVE-2023-50423 Affected Sap xssec Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
sap-xssec
PyPI
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is CVE-2023-50423?
CVE-2023-50423 is a security vulnerability in Sap xssec involving Improper Privilege Management in sap-xssec under CWE-269: Improper Privilege Management.
Which Sap xssec versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: sap-xssec.
What version fixes CVE-2023-50423?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sap-xssec affected?
Yes, sap-xssec is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What is the CVSS score of CVE-2023-50423?
CVE-2023-50423 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-50423?
CVE-2023-50423 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 PyPI dependencies for CVE-2023-50423?
Run the dependency tree command: 'pip show sap-xssec'. 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-6mjg-37cp-42x5",
  "modified" : "2024-09-30T19:44:11Z",
  "published" : "2023-12-13T13:34:36Z",
  "aliases" : [ "CVE-2023-50423" ],
  "summary" : "Improper Privilege Management in sap-xssec",
  "details" : "### Impact\n\nSAP BTP Security Services Integration Library ([Python] sap-xssec) 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 >= 4.1.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-50423\n",
  "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" : "PyPI",
      "name" : "sap-xssec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-pysec/security/advisories/GHSA-6mjg-37cp-42x5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50423"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAP/cloud-pysec/commit/d90c9e0733fa9af68bd8ea0b1cf023cf482163ef"
  }, {
    "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-pysec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sap-xssec/PYSEC-2023-261.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://me.sap.com/notes/3411067"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/sap-xssec"
  }, {
    "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:36Z",
    "nvd_published_at" : null
  }
}