CVE-2024-41951: PheonixAppAPI PheonixAppAPI Has Visible Encoding Maps Vulnerability

MODERATE
Advisory Identifier: GHSA-258h-f687-4226
CVSS 4.4
CWE-323
Published
Advisory Summary

CVE-2024-41951 is a MODERATE (CVSS 4.4) pheonixappapi has visible encoding maps vulnerability (CWE-323: Reusing a Nonce, Key Pair in Encryption) affecting PheonixAppAPI libraries in the PyPI ecosystem. The issue involves pheonixappapi has visible encoding maps. Remediation is available by upgrading affected packages to version 0.2.5.

CVE-2024-41951 at a Glance

CVE Identifier CVE-2024-41951
GHSA Identifier GHSA-258h-f687-4226
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-323: Reusing a Nonce, Key Pair in Encryption
Affected Product PheonixAppAPI
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.4

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

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

How to Fix CVE-2024-41951

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

PheonixAppAPI fixed: 0.2.5
pip install PheonixAppAPI>=0.2.5
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 PheonixAppAPI

How to Check if You Are Affected

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

pip show PheonixAppAPI

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-323: Reusing a Nonce, Key Pair in Encryption, where nonces should be used for the present occasion and only once. In PheonixAppAPI, 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 This is a kind of moderate issue. The impact is not big for normal users but can be for users who want to secure their code/files/etc. The issue is that the map of encoding/decoding languages are visible in code. ### Patches The Problem was patched in 0.2.5, so you should try to upgrade to the 0.2.5 version. ### For 0.2.5 version users Please run the post_install.py file inside the Scripts folder after downloading from pip. ### Workarounds There is a fix to this problem but it requires modifying the code. Modifying the code can lead to more issues. ### References There are currently no references to this problem. ### NOTE: If you get a error regarding a function like -> get_key() or something like that, please re-run the file post_install.py inside Scripts folder

CVE-2024-41951 Affected PheonixAppAPI Versions

1 component(s)
Fixed Versions:
0.2.5
Product / Package Ecosystem Affected Versions Fixed Version
PheonixAppAPI
PyPI
< 0.2.5
0.2.5

References

Frequently Asked Questions

What is CVE-2024-41951?
CVE-2024-41951 is a security vulnerability in PheonixAppAPI involving PheonixAppAPI has visible Encoding Maps under CWE-323: Reusing a Nonce, Key Pair in Encryption.
Which PheonixAppAPI versions are affected?
Affected versions include releases prior to 0.2.5 across affected packages: PheonixAppAPI.
What version fixes CVE-2024-41951?
Upgrading to 0.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is PheonixAppAPI affected?
Yes, PheonixAppAPI is affected in releases prior to 0.2.5. Upgrade your dependency to 0.2.5 or later.
What is the CVSS score of CVE-2024-41951?
CVE-2024-41951 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-41951?
CVE-2024-41951 is classified under CWE-323: Reusing a Nonce, Key Pair in Encryption (Nonces should be used for the present occasion and only once.).
How can I check PyPI dependencies for CVE-2024-41951?
Run the dependency tree command: 'pip show PheonixAppAPI'. 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-258h-f687-4226",
  "modified" : "2024-11-12T19:39:08Z",
  "published" : "2024-07-31T21:04:28Z",
  "aliases" : [ "CVE-2024-41951" ],
  "summary" : "PheonixAppAPI has visible Encoding Maps",
  "details" : "### Impact\nThis is a kind of moderate issue. The impact is not big for normal users but can be for users who want to secure their code/files/etc.\n\nThe issue is that the map of encoding/decoding languages are visible in code. \n\n### Patches\nThe Problem was patched in 0.2.5, so you should try to upgrade to the 0.2.5 version.\n\n### For 0.2.5 version users\nPlease run the post_install.py file inside the Scripts folder after downloading from pip.\n\n### Workarounds\nThere is a fix to this problem but it requires modifying the code. Modifying the code can lead to more issues.\n\n### References\nThere are currently no references to this problem.\n\n### NOTE: If you get a error regarding a function like -> get_key() or something like that, please re-run the file post_install.py inside Scripts folder\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "PheonixAppAPI"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AkshuDev/PheonixAppAPI/security/advisories/GHSA-258h-f687-4226"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41951"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AkshuDev/PheonixAppAPI/commit/0937419e323f5ea9013d43dc1b82fef9d7e05044"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AkshuDev/PheonixAppAPI"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-323" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-31T21:04:28Z",
    "nvd_published_at" : "2024-07-31T20:15:06Z"
  }
}