{"api_version":"1","generated_at":"2026-04-23T02:35:56+00:00","cve":"CVE-2007-4998","urls":{"html":"https://cve.report/CVE-2007-4998","api":"https://cve.report/api/cve/CVE-2007-4998.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-4998","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-4998"},"summary":{"title":"CVE-2007-4998","description":"cp, when running with an option to preserve symlinks on multiple OSes, allows local, user-assisted attackers to overwrite arbitrary files via a symlink attack using crafted directories containing multiple source files that are copied to the same destination.","state":"PUBLISHED","assigner":"redhat","published_at":"2008-01-31 21:00:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-59","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.9","severity":"","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","baseScore":6.9,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=356471","name":"https://bugzilla.redhat.com/show_bug.cgi?id=356471","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Bug 356471 – CVE-2007-4998 cp symlink overwrite","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://osvdb.org/43228","name":"http://osvdb.org/43228","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"https://issues.rpath.com/browse/RPL-2023","name":"https://issues.rpath.com/browse/RPL-2023","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4998","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4998","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":"2007","cve_id":"4998","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[{"cvename":"CVE-2007-4998","organization":"Red Hat","lastmodified":"2008-02-12","contributor":"Joshua Bressers","statementText":"This issue affects the busybox package in Red Hat Enterprise Linux 2.1, 3, 4, and 5, This issue affects the fileutils package in Red Hat Enterprise Linux 2.1. This issue affects the coreutils package in Red Hat Enterprise Linux 3. The coreutils package in Red Hat Enterprise Linux 4 and 5 are not vulnerable to this issue. Given this issue has minimal risk we do not intend to issues updates to correct this issue in affected versions of Red Hat Enterprise Linux. For more information please see: https://bugzilla.redhat.com/show_bug.cgi?id=356471","cve_year":"2007","cve_id":"4998","crc32":"4621003e"}],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2007-4998","qid":"900101","title":"CBL-Mariner Linux Security Update for kernel 5.10.52.1"},{"cve":"CVE-2007-4998","qid":"900303","title":"CBL-Mariner Linux Security Update for kernel 5.10.57.1"},{"cve":"CVE-2007-4998","qid":"900321","title":"CBL-Mariner Linux Security Update for kernel 5.10.60.1"},{"cve":"CVE-2007-4998","qid":"901675","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (6512)"},{"cve":"CVE-2007-4998","qid":"902916","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (3466)"},{"cve":"CVE-2007-4998","qid":"905957","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (3466-1)"},{"cve":"CVE-2007-4998","qid":"906477","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (6512-2)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T15:17:27.992Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://issues.rpath.com/browse/RPL-2023"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=356471"},{"name":"43228","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://osvdb.org/43228"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2008-01-22T00:00:00.000Z","descriptions":[{"lang":"en","value":"cp, when running with an option to preserve symlinks on multiple OSes, allows local, user-assisted attackers to overwrite arbitrary files via a symlink attack using crafted directories containing multiple source files that are copied to the same destination."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2008-11-15T10:00:00.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://issues.rpath.com/browse/RPL-2023"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=356471"},{"name":"43228","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://osvdb.org/43228"}]}},"cveMetadata":{"assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","assignerShortName":"redhat","cveId":"CVE-2007-4998","datePublished":"2008-01-31T20:00:00.000Z","dateReserved":"2007-09-20T00:00:00.000Z","dateUpdated":"2024-08-07T15:17:27.992Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2008-01-31 21:00:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-59","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","baseScore":6.9,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","matchCriteriaId":"155AD4FB-E527-4103-BCEF-801B653DEA37"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"4998","Ordinal":"1","Title":"CVE-2007-4998","CVE":"CVE-2007-4998","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"4998","Ordinal":"1","NoteData":"cp, when running with an option to preserve symlinks on multiple OSes, allows local, user-assisted attackers to overwrite arbitrary files via a symlink attack using crafted directories containing multiple source files that are copied to the same destination.","Type":"Description","Title":"CVE-2007-4998"},{"CveYear":"2007","CveId":"4998","Ordinal":"2","NoteData":"2008-01-31","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"4998","Ordinal":"3","NoteData":"2008-11-15","Type":"Other","Title":"Modified"}]}}}