CVE-2004-2778

Summary

CVECVE-2004-2778
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-06-27 20:29:00 UTC
Updated2025-04-20 01:37:25 UTC
DescriptionEbuild in Gentoo may change directory and file permissions depending on the order of installed packages, which allows local users to read or write to restricted directories or execute restricted commands via navigating to the affected directories, or executing the affected commands.

Risk And Classification

Primary CVSS: v3.0 7.1 HIGH from [email protected]

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Problem Types: CWE-264 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary7.1HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
2.0[email protected]Primary3.6AV:L/AC:L/Au:N/C:P/I:P/A:N

CVSS v3.0 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CVSS v2.0 Breakdown

Access Vector
Local
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None

AV:L/AC:L/Au:N/C:P/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Gentoo Portage All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
396153 – persistent administrative override of file and directory permissions (like dpkg-statoverride) af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org Vendor Advisory
oss-security - Re: Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example. af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
607430 – Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example. af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org Vendor Advisory
58611 – portage.py(mergeme) failes to change permission/ownership of a directory ${ROOT}/dir if ${IMAGE}/dir has different ownership/permissions. af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org Vendor Advisory
Gentoo Bug 141619 - portage keeps directory permissions but updates file permissions on merge af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org Vendor Advisory
607426 – sys-process/cronbase: wrong permissions on dirs lets any user to use cron. af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© 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