{"id":"CVE-2022-41956","summary":"Autolab is vulnerable to file disclosure via remote handin feature","details":"Autolab is a course management service, initially developed by a team of students at Carnegie Mellon University, that enables instructors to offer autograded programming assignments to their students over the Web. A file disclosure vulnerability was discovered in Autolab's remote handin feature, whereby users are able to hand-in assignments using paths outside their submission directory. Users can then view the submission to view the file's contents. The vulnerability has been patched in version 2.10.0. As a workaround, ensure that the field for the remote handin feature is empty (Edit Assessment \u003e Advanced \u003e Remote handin path), and that you are not running Autolab as `root` (or any user that has write access to `/`). Alternatively, disable the remote handin feature if it is unneeded by replacing the body of `local_submit` in `app/controllers/assessment/handin.rb` with `render(plain: \"Feature disabled\", status: :bad_request) && return`.","aliases":["GHSA-g7x7-mgrv-f24x"],"modified":"2026-08-12T03:51:37.007286355Z","published":"2023-01-14T00:40:32.121Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41956.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41956.json"},{"type":"ADVISORY","url":"https://github.com/autolab/Autolab/security/advisories/GHSA-g7x7-mgrv-f24x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41956"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2022-100_Autolab/"},{"type":"ARTICLE","url":"https://www.stackhawk.com/blog/rails-path-traversal-guide-examples-and-prevention/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/autolab/autolab","events":[{"introduced":"0"},{"fixed":"67f6644ae586a6031bb08a94ff04e50181bc8ab3"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:autolabproject:autolab:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.9.0"},{"fixed":"2.10.0"}]}}],"versions":["v2.9.0","v2.8.0","v2.7.0","v2.6.0","v2.4.0","v2.3.0","v2.2.1","2.2.1","2.2.0","v2.2.0","v2.0.8","2.1.0","2.0.8","v2.0.7","v2.0.6","v2.0.5","2.0.4","v2.0.3","v2.0.2","v1.7.0","v1.6.0","v1.5.1","v1.5.0","v1.4.1","v1.4.0","v1.3.0","v1.2.0","v1.1.1","v1.1.0","v1.0.5","v1.0.4","v1.0.3","v1.0.2","v1.0.1","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41956.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}