CVE-2024-27321: Refuel autolabel Refuel Autolab Eval Injection Vulnerability Vulnerability
HIGHCVE-2024-27321 is a HIGH (CVSS 7.8) refuel autolab eval injection vulnerability vulnerability (CWE-1236: Improper Neutralization of Formula Elements in a CSV File) affecting Refuel autolabel libraries in the PyPI ecosystem. The issue involves refuel autolab eval injection vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-27321 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-27321
To remediate this vulnerability, upgrade all affected Refuel autolabel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install refuel-autolabel>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show refuel-autolabel
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-27321, inspect your installed packages using pip:
pip show refuel-autolabel
Analyze the terminal output to locate any version of Refuel autolabel 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 refuel-autolabel command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1236: Improper Neutralization of Formula Elements in a CSV File, where the product saves user-provided information into a comma-separated value (csv) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product. In Refuel autolabel, 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
CVE-2024-27321 Affected Refuel autolabel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
refuel-autolabel
|
PyPI |
≥ 0.0.8
≤ 0.0.16
|
|
References
Frequently Asked Questions
What is CVE-2024-27321?
Which Refuel autolabel versions are affected?
What version fixes CVE-2024-27321?
Is refuel-autolabel affected?
What is the CVSS score of CVE-2024-27321?
What CWE is associated with CVE-2024-27321?
How can I check PyPI dependencies for CVE-2024-27321?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4fgp-7vvm-m4jf",
"modified" : "2024-09-20T19:16:57Z",
"published" : "2024-09-12T15:33:00Z",
"aliases" : [ "CVE-2024-27321" ],
"summary" : "Refuel Autolab Eval Injection vulnerability",
"details" : "An arbitrary code execution vulnerability exists in versions 0.0.8 and newer of the Refuel Autolabel library because of the way its multilabel classification tasks handle provided CSV files. If a user creates a multilabel classification task using a maliciously crafted CSV file containing Python code, the code will be passed to an eval function which executes it.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "refuel-autolabel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.8"
}, {
"last_affected" : "0.0.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27321"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/refuel-ai/autolabel"
}, {
"type" : "WEB",
"url" : "https://github.com/refuel-ai/autolabel/blob/v0.0.16/src/autolabel/dataset/validation.py#L129-L146"
}, {
"type" : "WEB",
"url" : "https://hiddenlayer.com/sai-security-advisory/2024-09-autolabel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1236", "CWE-95" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-12T19:49:50Z",
"nvd_published_at" : "2024-09-12T13:15:12Z"
}
}