{"id":"CVE-2023-35926","state":"PUBLISHED","title":"Insecure sandbox in Backstage Scaffolder plugin","description":"Backstage is an open platform for building developer portals. The Backstage scaffolder-backend plugin uses a templating library that requires sandbox, as it by design allows for code injection. The library used for this sandbox so far has been `vm2`, but in light of several past vulnerabilities and existing vulnerabilities  that may not have a fix, the plugin has switched to using a different sandbox library. A malicious actor with write access to a registered scaffolder template could manipulate the template in a way that allows for remote code execution on the scaffolder-backend instance. This was only exploitable in the template YAML definition itself and not by user input data. This is vulnerability is fixed in version 1.15.0 of `@backstage/plugin-scaffolder-backend`.","publishedAt":"2023-06-22T13:29:03.361Z","updatedAt":"2024-12-05T17:48:07.987Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["backstage backstage"],"affected":[{"vendor":"backstage","product":"backstage","versions":[{"version":"< 1.15.0","status":"affected"}]}],"references":["https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","https://github.com/backstage/backstage/releases/tag/v1.15.0"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/35xxx/CVE-2023-35926.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-35926","state":"PUBLISHED","datePublished":"2023-06-22T13:29:03.361Z","dateUpdated":"2024-12-05T17:48:07.987Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-06-20T14:02:45.592Z"},"containers":{"cna":{"title":"Insecure sandbox in Backstage Scaffolder plugin","descriptions":[{"lang":"en","value":"Backstage is an open platform for building developer portals. The Backstage scaffolder-backend plugin uses a templating library that requires sandbox, as it by design allows for code injection. The library used for this sandbox so far has been `vm2`, but in light of several past vulnerabilities and existing vulnerabilities  that may not have a fix, the plugin has switched to using a different sandbox library. A malicious actor with write access to a registered scaffolder template could manipulate the template in a way that allows for remote code execution on the scaffolder-backend instance. This was only exploitable in the template YAML definition itself and not by user input data. This is vulnerability is fixed in version 1.15.0 of `@backstage/plugin-scaffolder-backend`."}],"affected":[{"vendor":"backstage","product":"backstage","versions":[{"version":"< 1.15.0","status":"affected"}]}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","name":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","name":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","tags":["x_refsource_MISC"]},{"url":"https://github.com/backstage/backstage/releases/tag/v1.15.0","name":"https://github.com/backstage/backstage/releases/tag/v1.15.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-22T13:29:03.361Z"},"source":{"advisory":"GHSA-wg6p-jmpc-xjmr","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","name":"https://github.com/backstage/backstage/security/advisories/GHSA-wg6p-jmpc-xjmr","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","name":"https://github.com/backstage/backstage/commit/fb7375507d56faedcb7bb3665480070593c8949a","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/backstage/backstage/releases/tag/v1.15.0","name":"https://github.com/backstage/backstage/releases/tag/v1.15.0","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T16:37:40.040Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-12-05T17:47:53.884189Z","id":"CVE-2023-35926","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-12-05T17:48:07.987Z"}}]}}}