{"affected":[{"defaultStatus":"unaffected","ecosystem":"cpan","packageName":"CGI","product":"","source":"CNA: CPANSec","vendor":"","versions":[{"lessThan":"5.00","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-120641","cwes":["CWE-22"],"description":"CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths.\n\nThe name returned for an uploaded file is the filename parameter of the part's Content-Disposition header, unchanged.\n\nAn application that saves the upload under this name can be made to write outside the intended directory.","epss":null,"exploits":[],"kev":null,"metrics":[],"modifiedAt":1793749236961,"publishedAt":1793749236961,"references":[{"source":"CNA: CPANSec","tags":["technical-description"],"url":"https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm"},{"source":"CNA: CPANSec","tags":["release-notes"],"url":"https://metacpan.org/release/LEEJO/CGI-5.00/changes"},{"source":"CNA: CPANSec","tags":["patch"],"url":"https://github.com/leejo/CGI.pm/commit/5379eb18e87b7f985613f5c4f7bae94478a4fa2f.patch"}],"remediation":[{"kind":"fix","source":"CNA: CPANSec","text":"Upgrade to CGI 5.00 or later."},{"kind":"workaround","source":"CNA: CPANSec","text":"For deployments that cannot upgrade, do not use the client-supplied upload filename as a path."},{"kind":"fix","source":"CNA: CPANSec","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/leejo/CGI.pm/commit/5379eb18e87b7f985613f5c4f7bae94478a4fa2f.patch"}],"revision":"60dd07bc07c0c3bde6c7aa238028aba13251e9fe1c55dc6ba5b5c37d014c3dd4","sources":[{"modifiedAt":1793749236961,"name":"CNA: CPANSec","retrievedAt":1793750979730,"url":"https://www.cve.org/CVERecord?id=CVE-2026-120641"}],"ssvc":null,"status":"published","title":"CGI versions before 5.00 for Perl return upload filenames with any client-supplied path, including ../ and Windows paths","updatedAt":1793750979730}