CVE-2014-1839: Logilab common Creation Of Temporary File With Vulnerability

MODERATE
Advisory Identifier: GHSA-g5m2-22h2-rr3j
CVSS 5.6
CWE-378
Published
Advisory Summary

CVE-2014-1839 is a MODERATE (CVSS 5.6) creation of temporary file with vulnerability (CWE-378: Creation of Temporary File With Insecure Permissions) affecting Logilab common libraries in the PyPI ecosystem. The issue involves creation of temporary file with insecure permissions in logilab-commons. Remediation is available by upgrading affected packages to version 0.61.0.

CVE-2014-1839 at a Glance

CVE Identifier CVE-2014-1839
GHSA Identifier GHSA-g5m2-22h2-rr3j
Severity MODERATE
CVSS v3.1 Base Score 5.6
CWE Classification CWE-378: Creation of Temporary File With Insecure Permissions
Affected Product Logilab common
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.6

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
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-2014-1839

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

logilab-common fixed: 0.61.0
pip install logilab-common>=0.61.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 logilab-common

How to Check if You Are Affected

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

pip show logilab-common

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-378: Creation of Temporary File With Insecure Permissions, where opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack. In Logilab common, 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

The Execute class in shellutils in logilab-common before 0.61.0 uses tempfile.mktemp, which allows local users to have an unspecified impact by pre-creating the temporary file.

CVE-2014-1839 Affected Logilab common Versions

1 component(s)
Fixed Versions:
0.61.0
Product / Package Ecosystem Affected Versions Fixed Version
logilab-common
PyPI
< 0.61.0
0.61.0

References

Frequently Asked Questions

What is CVE-2014-1839?
CVE-2014-1839 is a security vulnerability in Logilab common involving Creation of Temporary File With Insecure Permissions in logilab-commons under CWE-378: Creation of Temporary File With Insecure Permissions.
Which Logilab common versions are affected?
Affected versions include releases prior to 0.61.0 across affected packages: logilab-common.
What version fixes CVE-2014-1839?
Upgrading to 0.61.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is logilab-common affected?
Yes, logilab-common is affected in releases prior to 0.61.0. Upgrade your dependency to 0.61.0 or later.
What is the CVSS score of CVE-2014-1839?
CVE-2014-1839 has a CVSS v3.1 base score of 5.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2014-1839?
CVE-2014-1839 is classified under CWE-378: Creation of Temporary File With Insecure Permissions (Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.).
How can I check PyPI dependencies for CVE-2014-1839?
Run the dependency tree command: 'pip show logilab-common'. 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-g5m2-22h2-rr3j",
  "modified" : "2024-09-30T16:48:42Z",
  "published" : "2022-05-14T02:09:23Z",
  "aliases" : [ "CVE-2014-1839" ],
  "summary" : "Creation of Temporary File With Insecure Permissions in logilab-commons",
  "details" : "The Execute class in shellutils in logilab-common before 0.61.0 uses tempfile.mktemp, which allows local users to have an unspecified impact by pre-creating the temporary file.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "logilab-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.61.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-1839"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737051"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-g5m2-22h2-rr3j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/logilab-common/PYSEC-2014-84.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://comments.gmane.org/gmane.comp.security.oss.general/11986"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2014-02/msg00085.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.logilab.org/ticket/207562"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-378" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T22:48:13Z",
    "nvd_published_at" : "2014-03-11T19:37:00Z"
  }
}