{"id":"CVE-2023-32317","published":"2023-05-26T22:42:09Z","modified":"2024-08-02T15:10:24Z","title":"Autolab tar slip in cheat checker functionality (`GHSL-2023-082`)","vendor":"autolab","product":"Autolab","tier":"tail","description":{"text":"Autolab is a course management service that enables auto-graded programming assignments. A Tar slip vulnerability was found in the MOSS cheat checker functionality of Autolab. To exploit this vulnerability an authenticated attacker with instructor permissions needs to upload a specially crafted Tar file. Both \"Base File Tar\" and \"Additional file archive\" can be fed with Tar files that contain paths outside their target directories (e.g.,  `../../../../tmp/tarslipped2.sh`). When the MOSS cheat checker is started the files inside of the archives are expanded to the attacker-chosen locations. This issue may lead to arbitrary file write within the scope of the running process.  This issue has been addressed in version 2.11.0. Users are advised to upgrade.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00981,"percentile":0.61041,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/autolab/Autolab/security/advisories/GHSA-h8g5-vhm4-wx6g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/autolab/Autolab/commit/410a9228ee265f80692334d75eb2c3b4dac6f9e5","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2023-081_GHSL-2023-082_Autolab/","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.21},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"autolab","affectedVersions":[{"vendor":"autolab","product":"Autolab","versions":["< 2.11.0"]}],"euvd":{"id":"EUVD-2023-36564","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-autolab-cve-2023-32317","children":[{"from":"CVE-2023-32317","to":"CVE-2023-32676","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/controllers/courses_controller.rb"],"commits":["https://github.com/autolab/Autolab/commit/410a9228ee265f80692334d75eb2c3b4dac6f9e5","https://github.com/autolab/Autolab/commit/14f508484a8323eceb0cf3a128573b43eabbc80d"],"basis":"shared function","functions":["extract_tar_for_moss"]},{"kind":"similar","provenance":"machine","score":0.45,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2023-32317","to":"CVE-2024-53260","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/controllers/courses_controller.rb"],"commits":["https://github.com/autolab/Autolab/commit/410a9228ee265f80692334d75eb2c3b4dac6f9e5","https://github.com/autolab/Autolab/commit/fe44b53815d37c63e751032205b692ccd5737620"],"basis":"rarely changed file"}]}]}}