MATLAB Mex Insecure Temporary Files Vulnerability

BID:6469

Info

MATLAB Mex Insecure Temporary Files Vulnerability

Bugtraq ID: 6469
Class: Design Error
CVE:
Remote: No
Local: Yes
Published: Dec 23 2002 12:00AM
Updated: Dec 23 2002 12:00AM
Credit: Discovery of this issue is credited to Paul Szabo <[email protected]>.
Vulnerable: MathWorks MATLAB 6.5
Not Vulnerable:

Discussion

MATLAB Mex Insecure Temporary Files Vulnerability

The MATLAB Mex script is prone to an issue which may allow local attackers to corrupt files.

MATLAB uses the process ID (PID) when naming temporary files. If an attacker can anticipate the name of temporary files created by Mex, then the attacker can place a malicious symbolic link in place of the temporary files. If the symbolic link points to a file which is writeable by the MATLAB user, then they will be corrupted when the Mex script performs any actions on temporary files.

Exploit / POC

MATLAB Mex Insecure Temporary Files Vulnerability

There is no exploit required.

Solution / Fix

MATLAB Mex Insecure Temporary Files Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

References

MATLAB Mex Insecure Temporary Files Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report