title: snapcraft may build snaps with incorrect LD_LIBRARY_PATH
description: In some conditions, a snap package built by snapcraft includes the current directory in LD_LIBRARY_PATH, allowing a malicious snap to gain code execution within the context of another snap if both plug the home interface or similar. This issue affects snapcraft versions prior to 4.4.4, prior to 2.43.1+16.04.1, and prior to 2.43.1+18.04.1.
problem types: CWE-427 Uncontrolled Search Path Element
affected:
{
product: snapcraft
vendor: Canonical
versions:
lessThan: 4.4.4, status: affected, version: 4.4, versionType: custom
changes: [at: 2.43.1+18.04.1, status: unaffected], lessThan: 2.43.1+16.04.1, status: affected, version: 2.43.1, versionType: custom
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: LOCAL
availabilityImpact: LOW
baseScore: 6.8
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
version: 3.1
]