{"id":"CVE-2007-4998","aliases":["AZL-34843","AZL-6512","DEBIAN-CVE-2007-4998","EUVD-2007-4979","GHSA-4337-x4h9-rx8j"],"status":"published","title":"cp, when running with an option to preserve symlinks on multiple OSes, allows local, user...","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.","severity":{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00347,"percentile":0.28513,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2008-01-31T20:00:00Z","modified":"2026-11-05T05:40:51Z","fixes":[{"ecosystem":"Azure Linux:3","package":"kernel","fixed_in":["6.6.35.1-4"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"kernel","fixed_in":["5.10.78.1-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"coreutils","fixed_in":["4.1.2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"coreutils","fixed_in":["4.1.2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"coreutils","fixed_in":["4.1.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.35.1-4"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.78.1-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"coreutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"coreutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"coreutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2"}]}]}],"products":[{"vendor":"linux","product":"linux_kernel"}],"references":[{"url":"https://issues.rpath.com/browse/RPL-2023","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=356471","tags":["x_refsource_CONFIRM","x_transferred","report"]},{"url":"http://osvdb.org/43228","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4998","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4337-x4h9-rx8j"},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-4998","tags":["advisory"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2008-01-31T20:00:00Z","modified":"2024-08-07T15:17:27.992Z","updated_at":"2026-11-02T13:33:30.262137Z"}],"euvd":[{"id":"EUVD-2007-4979","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.","status":"published","published":"2008-01-31T20:00:00Z","modified":"2024-08-07T15:17:27Z","updated_at":"2026-11-03T01:16:19.217323Z"}],"ghsa":[{"id":"GHSA-4337-x4h9-rx8j","title":"cp, when running with an option to preserve symlinks on multiple OSes, allows local, user...","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.","status":"published","published":"2022-05-01T18:29:00Z","modified":"2023-01-31T05:05:11Z","cwes":["CWE-59"],"updated_at":"2026-11-02T14:48:48.170956Z"}],"nvd":[{"id":"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.","status":"published","published":"2008-01-31T21:00:00Z","modified":"2026-06-16T22:45:15.14Z","cvss":[{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:01:24.110006Z"}],"osv":[{"id":"AZL-34843","title":"CVE-2007-4998 affecting package kernel for versions less than 6.6.35.1-4","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.","status":"published","published":"2008-01-31T21:00:00Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:19.380321Z"},{"id":"AZL-6512","title":"CVE-2007-4998 affecting package kernel for versions less than 5.10.78.1-1","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.","status":"published","published":"2008-01-31T21:00:00Z","modified":"2026-04-21T04:37:30.07993Z","updated_at":"2026-11-02T15:28:08.076947Z"},{"id":"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.","status":"published","published":"2008-01-31T21:00:00Z","modified":"2026-04-10T03:39:14.052132Z","updated_at":"2026-11-02T15:43:57.178433Z"},{"id":"DEBIAN-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.","status":"published","published":"2008-01-31T21:00:00Z","modified":"2026-10-21T17:47:31.504797922Z","updated_at":"2026-11-02T15:45:23.411908Z"}]}}
