Vulnerabilities in pkg:pypi/basicsr

PACKAGE
Advisory Identifier: GHSA-86w8-vhw6-q9qq
Advisory Summary

CVE-2024-27763 is a MODERATE (CVSS 5.3) xpixelgroup basicsr command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Basicsr libraries in the PyPI ecosystem. The issue involves xpixelgroup basicsr command injection. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/basicsr

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-86w8-vhw6-q9qq CVE-2024-27763 MODERATE XPixelGroup BasicSR Command Injection

CVE-2024-27763 at a Glance

CVE Identifier CVE-2024-27763
GHSA Identifier GHSA-86w8-vhw6-q9qq
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Basicsr
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L).

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 Low (A:L)

How to Fix CVE-2024-27763

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

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

How to Check if You Are Affected

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

pip show basicsr

Analyze the terminal output to locate any version of Basicsr 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 basicsr command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Basicsr, 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

XPixelGroup BasicSR through 1.4.2 might locally allow code execution in contrived situations where "scontrol show hostname" is executed in the presence of a crafted SLURM_NODELIST environment variable.

CVE-2024-27763 Affected Basicsr Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
basicsr
PyPI
≤ 1.4.2

References

Frequently Asked Questions

What is CVE-2024-27763?
CVE-2024-27763 is a security vulnerability in Basicsr involving XPixelGroup BasicSR Command Injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Basicsr versions are affected?
Affected versions include releases prior to current release patches across affected packages: basicsr.
What version fixes CVE-2024-27763?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is basicsr affected?
Yes, basicsr 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-2024-27763?
CVE-2024-27763 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-27763?
CVE-2024-27763 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check PyPI dependencies for CVE-2024-27763?
Run the dependency tree command: 'pip show basicsr'. 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-86w8-vhw6-q9qq",
  "modified" : "2025-03-13T16:25:46Z",
  "published" : "2025-03-12T15:32:06Z",
  "aliases" : [ "CVE-2024-27763" ],
  "summary" : "XPixelGroup BasicSR Command Injection",
  "details" : "XPixelGroup BasicSR through 1.4.2 might locally allow code execution in contrived situations where \"scontrol show hostname\" is executed in the presence of a crafted SLURM_NODELIST environment variable.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "basicsr"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27763"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/aydinnyunus/40e1d8a3b529261ae654ff4891f1e192"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/XPixelGroup/BasicSR"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/XPixelGroup/BasicSR/blob/master/basicsr/utils/dist_util.py#L44"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-13T16:25:46Z",
    "nvd_published_at" : "2025-03-12T15:15:39Z"
  }
}