Miggo Logo

CVE-2014-1839: Creation of Temporary File With Insecure Permissions in logilab-commons

5.6

CVSS Score
3.1

Basic Information

EPSS Score
0.1944%
Published
5/14/2022
Updated
9/30/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
logilab-commonpip< 0.61.00.61.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly mentions the Execute class in shellutils using tempfile.mktemp. The Debian bug report and CVE analysis confirm this code pattern creates a race condition vulnerability. The function generates temporary filenames without atomic creation (via mktemp), leaving a window for attackers to hijack the file paths. The patched version (0.61.0) would have replaced mktemp with a secure method like tempfile.mkstemp.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T** *x**ut* *l*ss in s**llutils in lo*il**-*ommon ***or* *.**.* us*s t*mp*il*.mkt*mp, w*i** *llows lo**l us*rs to **v* *n unsp**i*i** imp**t *y pr*-*r**tin* t** t*mpor*ry *il*.

Reasoning

T** vuln*r**ility **s*ription *xpli*itly m*ntions t** `*x**ut*` *l*ss in s**llutils usin* `t*mp*il*.mkt*mp`. T** ***i*n *u* r*port *n* *V* *n*lysis *on*irm t*is *o** p*tt*rn *r**t*s * r*** *on*ition vuln*r**ility. T** `*un*tion` **n*r*t*s t*mpor*ry `