{"id":"UBUNTU-CVE-2024-27629","details":"An issue in dc2niix before v.1.0.20240202 allows a local attacker to execute arbitrary code via the generated file name is not properly escaped and injected into a system call when certain types of compression are used.","modified":"2026-05-20T16:17:08.855266254Z","published":"2024-06-28T19:15:00Z","upstream":["CVE-2024-27629"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-27629"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-27629"},{"type":"REPORT","url":"https://github.com/rordenlab/dcm2niix/pull/789"}],"affected":[{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20170923-1","1.0.20171017-1","1.0.20171215-1"],"ecosystem_specific":{"binaries":[{"binary_name":"dcm2niix","binary_version":"1.0.20171215-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}},{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20181125-1","1.0.20181125-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dcm2niix","binary_version":"1.0.20181125-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}},{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20201102-1","1.0.20211006-1","1.0.20211006-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dcm2niix","binary_version":"1.0.20211006-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}},{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20220720-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dcm2niix","binary_version":"1.0.20220720-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}},{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20240202-1build1","1.0.20241211-1"],"ecosystem_specific":{"binaries":[{"binary_name":"dcm2niix","binary_version":"1.0.20241211-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}},{"package":{"name":"dcm2niix","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/dcm2niix?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.20241211-1","1.0.20250506-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.20250506-1","binary_name":"dcm2niix"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27629.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}