{"id":"CVE-2022-37425","state":"PUBLISHED","title":"The FILES directive inside a VM template allows execution of uploaded files when the template is instantiated, resulting in a Remote Code Execution (RCE) attack.","description":"Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in OpenNebula OpenNebula core on Linux allows Remote Code Inclusion.","publishedAt":"2022-10-28T15:09:21.268Z","updatedAt":"2024-08-03T10:29:21.021Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"blackberry"},"assigner":"blackberry","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://opennebula.io/opennebula-6-4-2-ee-lts-maintenance-release-is-available/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:24.026Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/37xxx/CVE-2022-37425.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-37425","state":"PUBLISHED","datePublished":"2022-10-28T15:09:21.268Z","dateUpdated":"2024-08-03T10:29:21.021Z","assignerShortName":"blackberry","assignerOrgId":"dbe78b00-5e7b-4fda-8748-329789ecfc5c","serial":1,"dateReserved":"2022-08-05T00:00:00.000Z"},"containers":{"cna":{"title":"The FILES directive inside a VM template allows execution of uploaded files when the template is instantiated, resulting in a Remote Code Execution (RCE) attack.","descriptions":[{"lang":"en","value":"Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in OpenNebula OpenNebula core on Linux allows Remote Code Inclusion."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://opennebula.io/opennebula-6-4-2-ee-lts-maintenance-release-is-available/","name":"https://opennebula.io/opennebula-6-4-2-ee-lts-maintenance-release-is-available/"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"CRITICAL","baseScore":9.9,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"orgId":"dbe78b00-5e7b-4fda-8748-329789ecfc5c","dateUpdated":"2024-07-05T19:09:00.000Z"},"datePublic":"2022-10-27T09:33:00.000Z","impacts":[{"capecId":"CAPEC-253","descriptions":[{"lang":"en","value":"CAPEC-253 Remote Code Inclusion"}]}],"configurations":[{"lang":"en","value":"Regular users must be allowed to use the FILES directive inside the CONTEXT section of a VM template when instantiating a VM, (this is restricted by default to users in the oneadmin group). This could also be exploited by social engineering a user in the oneadmin group to start a VM from the malicious template.","supportingMedia":[{"type":"text/html","base64":false,"value":"Regular users must be allowed to use the FILES directive inside the CONTEXT section of a VM template when instantiating a VM, (this is restricted by default to users in the oneadmin group). This could also be exploited by social engineering a user in the oneadmin group to start a VM from the malicious template."}]}],"workarounds":[{"lang":"en","value":"Do not allow regular users to use the FILES directive inside their VM templates, instead set up a context files datastore, and allow users to upload and reference their files from that datastore, using the FILES_DS directive.","supportingMedia":[{"type":"text/html","base64":false,"value":"Do not allow regular users to use the FILES directive inside their VM templates, instead set up a context files datastore, and allow users to upload and reference their files from that datastore, using the FILES_DS directive."}]}],"solutions":[{"lang":"en","value":"Upgrade to OpenNebula 6.4.2 EE LTS and configure the CONTEXT_RESTRICTED_DIRS and CONTEXT_SAFE_DIRS properties in oned.conf","supportingMedia":[{"type":"text/html","base64":false,"value":"Upgrade to OpenNebula 6.4.2 EE LTS and configure the CONTEXT_RESTRICTED_DIRS and CONTEXT_SAFE_DIRS properties in oned.conf"}]}],"source":{"discovery":"USER"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://opennebula.io/opennebula-6-4-2-ee-lts-maintenance-release-is-available/","name":"https://opennebula.io/opennebula-6-4-2-ee-lts-maintenance-release-is-available/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T10:29:21.021Z"}}]}}}