{"id":"USN-5220-1","summary":"composer vulnerability","details":"It was discovered that Composer did not properly sanitize URLs for\nMercurial repositories in the root composer.json and package source\ndownload URLs. A remote attacker could possibly use this issue to execute\narbitrary code.\n","modified":"2026-02-10T04:42:25Z","published":"2022-07-08T08:52:19Z","related":["UBUNTU-CVE-2021-29472"],"upstream":["CVE-2021-29472","UBUNTU-CVE-2021-29472"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5220-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-29472"}],"affected":[{"package":{"name":"composer","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/composer@1.0.0~beta2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0~beta2-1ubuntu0.1~esm1"}]}],"versions":["1.0.0~alpha10+20150602-1","1.0.0~alpha10+20150602-2","1.0.0~alpha11-1","1.0.0~alpha11-1ubuntu1","1.0.0~alpha11-2","1.0.0~alpha11-3","1.0.0~beta1-1ubuntu1","1.0.0~beta2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.0~beta2-1ubuntu0.1~esm1","binary_name":"composer"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5220-1.json","cves_map":{"cves":[{"id":"CVE-2021-29472","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:16.04:LTS"}}},{"package":{"name":"composer","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/composer@1.6.3-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3-1ubuntu0.1~esm1"}]}],"versions":["1.5.1-1","1.5.2-1","1.6.2-1","1.6.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.3-1ubuntu0.1~esm1","binary_name":"composer"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5220-1.json","cves_map":{"cves":[{"id":"CVE-2021-29472","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:18.04:LTS"}}},{"package":{"name":"composer","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/composer@1.10.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.1-1ubuntu0.1~esm1"}]}],"versions":["1.9.0-2","1.9.1-1","1.9.2-1","1.9.3-1","1.10.0-1","1.10.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.10.1-1ubuntu0.1~esm1","binary_name":"composer"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5220-1.json","cves_map":{"cves":[{"id":"CVE-2021-29472","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:20.04:LTS"}}}],"schema_version":"1.7.3"}