{"id":"CVE-2004-0126","aliases":["EUVD-2004-0126","GHSA-m87g-q8c5-j57m"],"status":"published","title":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process...","description":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process even if the process doesn't have permission to change directory, which allows local users to gain read/write privileges to files and directories within another jail.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00331,"percentile":0.26483,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2004-03-29T05:00:00Z","modified":"2026-06-16T22:04:59Z","products":[{"vendor":"freebsd","product":"freebsd"}],"references":[{"url":"http://www.securityfocus.com/bid/9762","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Vendor Advisory"]},{"url":"ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-04:03.jail.asc","tags":["vendor-advisory","x_refsource_FREEBSD","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.osvdb.org/4101","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/15344","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0126"},{"url":"https://github.com/advisories/GHSA-m87g-q8c5-j57m"}],"sources":{"cve":[{"id":"CVE-2004-0126","description":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process even if the process doesn't have permission to change directory, which allows local users to gain read/write privileges to files and directories within another jail.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T00:10:03.886Z","updated_at":"2026-11-02T14:34:54.398187Z"}],"euvd":[{"id":"EUVD-2004-0126","description":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process even if the process doesn't have permission to change directory, which allows local users to gain read/write privileges to files and directories within another jail.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T00:10:03Z","updated_at":"2026-11-03T01:15:20.586153Z"}],"ghsa":[{"id":"GHSA-m87g-q8c5-j57m","title":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process...","description":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process even if the process doesn't have permission to change directory, which allows local users to gain read/write privileges to files and directories within another jail.","status":"published","published":"2022-05-03T03:12:56Z","modified":"2023-02-01T05:01:07Z","updated_at":"2026-11-02T14:49:40.629091Z"}],"nvd":[{"id":"CVE-2004-0126","description":"The jail_attach system call in FreeBSD 5.1 and 5.2 changes the directory of a calling process even if the process doesn't have permission to change directory, which allows local users to gain read/write privileges to files and directories within another jail.","status":"published","published":"2004-03-29T05:00:00Z","modified":"2026-06-16T22:04:59.767Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:49.729639Z"}]}}
