HIGH
CVE-2004-2778
CWE-264Published: June 27, 2017· Updated: Jun 16, 2026
7.1
CVSS v3.1
Official Description
Ebuild 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.
Technical Analysis
CVE-2004-2778 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), with a CVSS base score of 7.1.
CVSS v3.1 Vector Breakdown
Exploitability
Attack VectorLocal
Attack ComplexityLow
Privileges Req.Low
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityHigh
IntegrityHigh
AvailabilityNone
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Affected Vendors & Products
gentoo1 product(s)
portage
Source: NVD CPE · 1 total CPE entries
Exploit & PoC Resources
NO KNOWN EXPLOITNo public exploit confirmed at this time
Exploit-DB
Offensive Security exploit database
GitHub PoC Search
Community PoC repositories
Rapid7 / Metasploit
Metasploit module search
PacketStorm
Security advisories & exploits
NVD Detail
Official NIST entry
MITRE CVE
CVE Program entry
External links open in a new tab. Always verify in a controlled environment before use.
Official Patches & Advisories
All References (12)
→
http://www.openwall.com/lists/oss-security/2017/01/28/7Mailing List · Third Party Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=141619Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=396153Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=58611Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=607426Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=607430Vendor Advisory
→
http://www.openwall.com/lists/oss-security/2017/01/28/7Mailing List · Third Party Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=141619Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=396153Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=58611Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=607426Vendor Advisory
→
https://bugs.gentoo.org/show_bug.cgi?id=607430Vendor Advisory
Quick Facts
CVE IDCVE-2004-2778
CVSS Score7.1 / 10
SeverityHIGH
WeaknessCWE-264
CISA KEVNo
Affected1 vendor(s)
PublishedJun 27, 2017
Related CVEs (CWE-264)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2004-2778 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.