ID GLSA-200710-22 Type gentoo Reporter Gentoo Foundation Modified 2007-12-30T00:00:00
Description
Background
TRAMP is a remote file editing package for GNU Emacs, a highly extensible and customizable text editor.
Description
Stefan Monnier discovered that the tramp-make-tramp-temp-file() function creates temporary files in an insecure manner.
Impact
A local attacker could create symbolic links in the directory where the temporary files are written, pointing to a valid file somewhere on the filesystem that is writable by the user running TRAMP. When TRAMP writes the temporary file, the target valid file would then be overwritten with the contents of the TRAMP temporary file.
Workaround
There is no known workaround at this time.
Resolution
All TRAMP users should upgrade to the latest version:
{"viewCount": 0, "id": "GLSA-200710-22", "hash": "a4ff335be9d11c7fe04f3fe2a850b21e8632cda0ac2cfa4ebe0addb181494533", "lastseen": "2016-09-06T19:46:10", "href": "https://security.gentoo.org/glsa/200710-22", "history": [], "edition": 1, "description": "### Background\n\nTRAMP is a remote file editing package for GNU Emacs, a highly extensible and customizable text editor. \n\n### Description\n\nStefan Monnier discovered that the tramp-make-tramp-temp-file() function creates temporary files in an insecure manner. \n\n### Impact\n\nA local attacker could create symbolic links in the directory where the temporary files are written, pointing to a valid file somewhere on the filesystem that is writable by the user running TRAMP. When TRAMP writes the temporary file, the target valid file would then be overwritten with the contents of the TRAMP temporary file. \n\n### Workaround\n\nThere is no known workaround at this time. \n\n### Resolution\n\nAll TRAMP users should upgrade to the latest version: \n \n \n # emerge --sync\n # emerge --ask --oneshot --verbose \">=app-emacs/tramp-2.1.10-r2\"", "cvelist": ["CVE-2007-5377"], "references": ["https://bugs.gentoo.org/show_bug.cgi?id=194713", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5377"], "modified": "2007-12-30T00:00:00", "cvss": {"score": 6.9, "vector": "AV:LOCAL/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "bulletinFamily": "unix", "title": "TRAMP: Insecure temporary file creation", "objectVersion": "1.2", "reporter": "Gentoo Foundation", "type": "gentoo", "published": "2007-10-20T00:00:00", "affectedPackage": [{"operator": "lt", "packageName": "app-emacs/tramp", "OSVersion": "any", "OS": "Gentoo", "packageVersion": "2.1.10-r2", "arch": "all", "packageFilename": "UNKNOWN"}], "hashmap": [{"key": "affectedPackage", "hash": "0a92ca165bd0e9d5fe93e46fee77f557"}, {"key": "bulletinFamily", "hash": "4913a9178621eadcdf191db17915fbcb"}, {"key": "cvelist", "hash": "454153f0fdc951c7dfdc7d0df65e9808"}, {"key": "cvss", "hash": "e8bafdc9ad5c6f47fe1e6e5fd509b7a9"}, {"key": "description", "hash": "406c6ce2c13ab7a7309934827ccc60b8"}, {"key": "href", "hash": "fec0e52ccfd8b0d557908976439da647"}, {"key": "modified", "hash": "52b5769b7b79ad1523ef48aff6c6b99f"}, {"key": "objectVersion", "hash": "777d45bbbcdf50d49c42c70ad7acf5fe"}, {"key": "published", "hash": "d57fa8e44428655a94e3175b1b89d7f9"}, {"key": "references", "hash": "cf6dd47b2accade06a531b8ac5374e26"}, {"key": "reporter", "hash": "ac1fd6b3deacaf22b54dd1934ae33181"}, {"key": "title", "hash": "b26ab9b43125915eccaf67e606b3f378"}, {"key": "type", "hash": "365d0fc7d6206ff26e2f2c2a78c91a94"}], "enchantments": {"vulnersScore": 7.2}}
{"result": {"cve": [{"id": "CVE-2007-5377", "type": "cve", "title": "CVE-2007-5377", "description": "The (1) tramp-make-temp-file and (2) tramp-make-tramp-temp-file functions in Tramp 2.1.10 extension for Emacs, and possibly earlier 2.1.x versions, allows local users to overwrite arbitrary files via a symlink attack on temporary files.", "published": "2007-10-11T20:17:00", "cvss": {"score": 6.9, "vector": "AV:LOCAL/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-5377", "cvelist": ["CVE-2007-5377"], "lastseen": "2016-09-03T09:37:23"}], "nessus": [{"id": "GENTOO_GLSA-200710-22.NASL", "type": "nessus", "title": "GLSA-200710-22 : TRAMP: Insecure temporary file creation", "description": "The remote host is affected by the vulnerability described in GLSA-200710-22 (TRAMP: Insecure temporary file creation)\n\n Stefan Monnier discovered that the tramp-make-tramp-temp-file() function creates temporary files in an insecure manner.\n Impact :\n\n A local attacker could create symbolic links in the directory where the temporary files are written, pointing to a valid file somewhere on the filesystem that is writable by the user running TRAMP. When TRAMP writes the temporary file, the target valid file would then be overwritten with the contents of the TRAMP temporary file.\n Workaround :\n\n There is no known workaround at this time.", "published": "2007-10-25T00:00:00", "cvss": {"score": 6.9, "vector": "AV:LOCAL/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://www.tenable.com/plugins/index.php?view=single&id=27554", "cvelist": ["CVE-2007-5377"], "lastseen": "2017-10-29T13:43:27"}], "openvas": [{"id": "OPENVAS:58701", "type": "openvas", "title": "Gentoo Security Advisory GLSA 200710-22 (tramp)", "description": "The remote host is missing updates announced in\nadvisory GLSA 200710-22.", "published": "2008-09-24T00:00:00", "cvss": {"score": 6.9, "vector": "AV:LOCAL/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "http://plugins.openvas.org/nasl.php?oid=58701", "cvelist": ["CVE-2007-5377"], "lastseen": "2017-07-24T12:50:12"}]}}