{"id":"UBUNTU-CVE-2021-46142","details":"An issue was discovered in uriparser before 0.9.6. It performs invalid free operations in uriNormalizeSyntax.","modified":"2026-04-22T15:03:16.698130Z","published":"2022-01-06T04:15:00Z","related":["USN-5256-1","USN-5256-2"],"upstream":["CVE-2021-46142"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-46142"},{"type":"REPORT","url":"https://github.com/uriparser/uriparser/issues/122"},{"type":"REPORT","url":"https://github.com/uriparser/uriparser/pull/124"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5256-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5256-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-46142"}],"affected":[{"package":{"name":"uriparser","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/uriparser@0.7.5-1ubuntu2+esm3?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1ubuntu2+esm3"}]}],"versions":["0.7.5-1","0.7.5-1ubuntu1","0.7.5-1ubuntu2","0.7.5-1ubuntu2+esm1","0.7.5-1ubuntu2+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.5-1ubuntu2+esm3","binary_name":"liburiparser1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46142.json"}},{"package":{"name":"uriparser","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/uriparser@0.8.4-1ubuntu0.16.04.1~esm3?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.4-1ubuntu0.16.04.1~esm3"}]}],"versions":["0.8.2-1","0.8.3-1","0.8.4-1","0.8.4-1ubuntu0.16.04.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.4-1ubuntu0.16.04.1~esm3","binary_name":"liburiparser1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46142.json"}},{"package":{"name":"uriparser","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/uriparser@0.8.4-1+deb9u2ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.4-1+deb9u2ubuntu0.1"}]}],"versions":["0.8.4-1","0.8.4-1+deb9u2build0.18.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.4-1+deb9u2ubuntu0.1","binary_name":"liburiparser1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46142.json"}},{"package":{"name":"uriparser","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/uriparser@0.9.3-2ubuntu0.1~esm2?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.3-2ubuntu0.1~esm2"}]}],"versions":["0.9.3-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.3-2ubuntu0.1~esm2","binary_name":"liburiparser1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46142.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}