FreeBSD Package Add Insecure Temporary Directory Creation Vulnerability

BID:3819

Info

FreeBSD Package Add Insecure Temporary Directory Creation Vulnerability

Bugtraq ID: 3819
Class: Access Validation Error
CVE:
Remote: No
Local: Yes
Published: Jan 04 2002 12:00AM
Updated: Jan 04 2002 12:00AM
Credit: This vulnerability was discovered by The Anarcat <[email protected]>, and announced in a FreeBSD Security Advisory on January 4, 2002.
Vulnerable: FreeBSD FreeBSD 4.4
FreeBSD FreeBSD 4.3
FreeBSD FreeBSD 4.2
Not Vulnerable:

Discussion

FreeBSD Package Add Insecure Temporary Directory Creation Vulnerability

FreeBSD is a freely available, open source clone of the Unix Operating System. It is maintained by the FreeBSD project.

When pkg_add is executed, the directory the contents of the package are extracted to is created with permissions of 755. With this permission set, it is possible for a local user to descend the directory tree. In the event that any subdirectories have been created with world-writable permissions, the user could either remove the data in those directories, or trojan the files to later gain elevated privileges.

Exploit / POC

FreeBSD Package Add Insecure Temporary Directory Creation Vulnerability

Currently the SecurityFocus staff are not aware of any exploits 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]>.

Solution / Fix

FreeBSD Package Add Insecure Temporary Directory Creation Vulnerability

Solution:
Fixes available:


FreeBSD FreeBSD 4.2

FreeBSD FreeBSD 4.3

FreeBSD FreeBSD 4.4

References

FreeBSD Package Add Insecure Temporary Directory Creation 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