{"api_version":"1","generated_at":"2026-05-13T03:12:09+00:00","cve":"CVE-2004-2778","urls":{"html":"https://cve.report/CVE-2004-2778","api":"https://cve.report/api/cve/CVE-2004-2778.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-2778","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-2778"},"summary":{"title":"CVE-2004-2778","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2017-06-27 20:29:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"7.1","severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"3.6","severity":"","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","data":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:N","baseScore":3.6,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE"}}],"references":[{"url":"https://bugs.gentoo.org/show_bug.cgi?id=396153","name":"https://bugs.gentoo.org/show_bug.cgi?id=396153","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"396153 – persistent administrative override of file and directory permissions (like dpkg-statoverride)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2017/01/28/7","name":"http://www.openwall.com/lists/oss-security/2017/01/28/7","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"oss-security - Re: Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=607430","name":"https://bugs.gentoo.org/show_bug.cgi?id=607430","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"607430 – Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=58611","name":"https://bugs.gentoo.org/show_bug.cgi?id=58611","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"58611 – portage.py(mergeme) failes to change permission/ownership of a directory ${ROOT}/dir if ${IMAGE}/dir has different ownership/permissions.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=141619","name":"https://bugs.gentoo.org/show_bug.cgi?id=141619","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Gentoo Bug 141619 - portage keeps directory permissions but updates file permissions on merge","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=607426","name":"https://bugs.gentoo.org/show_bug.cgi?id=607426","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"607426 – sys-process/cronbase: wrong permissions on dirs lets any user to use cron.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-2778","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-2778","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2004","cve_id":"2778","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gentoo","cpe5":"portage","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T01:36:25.401Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=141619"},{"name":"[oss-security] 20170128 Re: Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example.","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2017/01/28/7"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=58611"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=607426"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=396153"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=607430"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-07-27T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-06-27T19:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=141619"},{"name":"[oss-security] 20170128 Re: Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example.","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2017/01/28/7"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=58611"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=607426"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=396153"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.gentoo.org/show_bug.cgi?id=607430"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-2778","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugs.gentoo.org/show_bug.cgi?id=141619","refsource":"CONFIRM","url":"https://bugs.gentoo.org/show_bug.cgi?id=141619"},{"name":"[oss-security] 20170128 Re: Gentoo: order of installed packages may result in vary directories permissions, leading to crontab not requiring cron group membership as example.","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2017/01/28/7"},{"name":"https://bugs.gentoo.org/show_bug.cgi?id=58611","refsource":"CONFIRM","url":"https://bugs.gentoo.org/show_bug.cgi?id=58611"},{"name":"https://bugs.gentoo.org/show_bug.cgi?id=607426","refsource":"CONFIRM","url":"https://bugs.gentoo.org/show_bug.cgi?id=607426"},{"name":"https://bugs.gentoo.org/show_bug.cgi?id=396153","refsource":"CONFIRM","url":"https://bugs.gentoo.org/show_bug.cgi?id=396153"},{"name":"https://bugs.gentoo.org/show_bug.cgi?id=607430","refsource":"CONFIRM","url":"https://bugs.gentoo.org/show_bug.cgi?id=607430"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-2778","datePublished":"2017-06-27T20:00:00.000Z","dateReserved":"2017-01-28T00:00:00.000Z","dateUpdated":"2024-08-08T01:36:25.401Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-06-27 20:29:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":5.2}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:N","baseScore":3.6,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"LOW","exploitabilityScore":3.9,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gentoo:portage:*:*:*:*:*:*:*:*","matchCriteriaId":"2D2DB2B2-6B07-44EC-A1BE-6E5B8A502D87"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"2778","Ordinal":"1","Title":"CVE-2004-2778","CVE":"CVE-2004-2778","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"2778","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2004-2778"},{"CveYear":"2004","CveId":"2778","Ordinal":"2","NoteData":"2017-06-27","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"2778","Ordinal":"3","NoteData":"2017-06-27","Type":"Other","Title":"Modified"}]}}}