Vulnerabilities in pkg:pypi/upydev

PACKAGE
Advisory Identifier: GHSA-qc4j-hrj6-cppf
Advisory Summary

CVE-2023-48051 is a HIGH (CVSS 7.5) upydev has weak encryption padding vulnerability (CWE-326: Inadequate Encryption Strength) affecting Upydev libraries in the PyPI ecosystem. The issue involves upydev has weak encryption padding. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/upydev

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-qc4j-hrj6-cppf CVE-2023-48051 HIGH upydev has weak encryption padding

CVE-2023-48051 at a Glance

CVE Identifier CVE-2023-48051
GHSA Identifier GHSA-qc4j-hrj6-cppf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Upydev
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/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 None (I:N)
Availability None (A:N)

How to Fix CVE-2023-48051

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

upydev fixed: Latest secure release
pip install upydev>=Latest secure release
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 upydev

How to Check if You Are Affected

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

pip show upydev

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. In Upydev, 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

An issue in `/upydev/keygen.py` in upydev v0.4.3 allows attackers to decrypt sensitive information via weak encryption padding.

CVE-2023-48051 Affected Upydev Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
upydev
PyPI
≤ 0.4.3

References

Frequently Asked Questions

What is CVE-2023-48051?
CVE-2023-48051 is a security vulnerability in Upydev involving upydev has weak encryption padding under CWE-326: Inadequate Encryption Strength.
Which Upydev versions are affected?
Affected versions include releases prior to current release patches across affected packages: upydev.
What version fixes CVE-2023-48051?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is upydev affected?
Yes, upydev is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-48051?
CVE-2023-48051 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-48051?
CVE-2023-48051 is classified under CWE-326: Inadequate Encryption Strength (The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.).
How can I check PyPI dependencies for CVE-2023-48051?
Run the dependency tree command: 'pip show upydev'. 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-qc4j-hrj6-cppf",
  "modified" : "2024-11-22T20:43:24Z",
  "published" : "2023-11-21T00:30:27Z",
  "aliases" : [ "CVE-2023-48051" ],
  "summary" : "upydev has weak encryption padding",
  "details" : "An issue in `/upydev/keygen.py` in upydev v0.4.3 allows attackers to decrypt sensitive information via weak encryption padding.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "upydev"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-48051"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Carglglz/upydev/issues/38"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Carglglz/upydev"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/upydev/PYSEC-2023-302.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-326" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-29T21:45:39Z",
    "nvd_published_at" : "2023-11-20T23:15:06Z"
  }
}