CVE-2018-1000843: Luigi Cross-Site Request Forgery (CSRF) Vulnerability

HIGH
Advisory Identifier: GHSA-p69g-f978-xxv9
CVSS 8.8
CWE-352
Published
Advisory Summary

CVE-2018-1000843 is a HIGH (CVSS 8.8) cross-site request forgery (csrf) vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Luigi libraries in the PyPI ecosystem. The issue involves cross-site request forgery (csrf) in luigi. Remediation is available by upgrading affected packages to version 2.8.0.

CVE-2018-1000843 at a Glance

CVE Identifier CVE-2018-1000843
GHSA Identifier GHSA-p69g-f978-xxv9
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Luigi
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix CVE-2018-1000843

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

luigi fixed: 2.8.0
pip install luigi>=2.8.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 luigi

How to Check if You Are Affected

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

pip show luigi

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Luigi, 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

Luigi version prior to version 2.8.0; after commit 53b52e12745075a8acc016d33945d9d6a7a6aaeb; after GitHub PR spotify/luigi/pull/1870 contains a Cross ite Request Forgery (CSRF) vulnerability in API endpoint: /api/<method> that can result in Task metadata such as task name, id, parameter, etc. will be leaked to unauthorized users. This attack appear to be exploitable via The victim must visit a specially crafted webpage from the network where their Luigi server is accessible.. This vulnerability appears to have been fixed in 2.8.0 and later.

CVE-2018-1000843 Affected Luigi Versions

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

References

Frequently Asked Questions

What is CVE-2018-1000843?
CVE-2018-1000843 is a security vulnerability in Luigi involving Cross-Site Request Forgery (CSRF) in Luigi under CWE-352: Cross-Site Request Forgery (CSRF).
Which Luigi versions are affected?
Affected versions include releases prior to 2.8.0 across affected packages: luigi.
What version fixes CVE-2018-1000843?
Upgrading to 2.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is luigi affected?
Yes, luigi is affected in releases prior to 2.8.0. Upgrade your dependency to 2.8.0 or later.
What is the CVSS score of CVE-2018-1000843?
CVE-2018-1000843 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-1000843?
CVE-2018-1000843 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2018-1000843?
Run the dependency tree command: 'pip show luigi'. 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-p69g-f978-xxv9",
  "modified" : "2024-09-30T16:56:51Z",
  "published" : "2018-12-20T22:01:39Z",
  "aliases" : [ "CVE-2018-1000843" ],
  "summary" : "Cross-Site Request Forgery (CSRF) in Luigi",
  "details" : "Luigi version prior to version 2.8.0; after commit 53b52e12745075a8acc016d33945d9d6a7a6aaeb; after GitHub PR spotify/luigi/pull/1870 contains a Cross ite Request Forgery (CSRF) vulnerability in API endpoint: /api/<method> that can result in Task metadata such as task name, id, parameter, etc. will be leaked to unauthorized users. This attack appear to be exploitable via The victim must visit a specially crafted webpage from the network where their Luigi server is accessible.. This vulnerability appears to have been fixed in 2.8.0 and later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/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:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "luigi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000843"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spotify/luigi/pull/1870"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-p69g-f978-xxv9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/luigi/PYSEC-2018-11.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spotify/luigi"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spotify/luigi/blob/2.7.9/luigi/server.py#L67"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!topic/luigi-user/ZgfRTpBsVUY"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:48:19Z",
    "nvd_published_at" : null
  }
}