Use-after-free in uriparser - CVE-2021-46142
Published: January 27, 2022
Vulnerability identifier: #VU60086
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-46142
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to crash the application.
The vulnerability exists due to a use-after-free error when parsing URI in uriNormalizeSyntax in uriparser. A remote attacker can trick the victim to open a specially crafted URI, trigger a use-after-free error and crash the application that us using the affected library.Affected software
uriparser
uriparser (Debian package)
liburiparser-dev (Ubuntu package)
liburiparser1 (Ubuntu package)
uriparser
uriparser-devel
uriparser-debugsource
uriparser-debuginfo
uriparser-help
mingw-uriparser
Fedora
Ubuntu
openEuler
uriparser (Debian package)
liburiparser-dev (Ubuntu package)
liburiparser1 (Ubuntu package)
uriparser
uriparser-devel
uriparser-debugsource
uriparser-debuginfo
uriparser-help
mingw-uriparser
Fedora
Ubuntu
openEuler
How to mitigate CVE-2021-46142
Install updates from vendor's website.
uriparser - update to 0.9.6
uriparser (Debian package) - addressed in versions 0.9.1-1+deb10u1, 0.9.4+dfsg-1+deb11u1
liburiparser-dev (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
liburiparser1 (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
uriparser - update to 0.9.6-1
uriparser-devel - update to 0.9.6-1
uriparser-debugsource - update to 0.9.6-1
uriparser-debuginfo - update to 0.9.6-1
uriparser-help - update to 0.9.6-1
mingw-uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35
uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35, 0.9.7-1.el8
uriparser (Debian package) - addressed in versions 0.9.1-1+deb10u1, 0.9.4+dfsg-1+deb11u1
liburiparser-dev (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
liburiparser1 (Ubuntu package) - update to 0.8.4-1+deb9u2ubuntu0.1
uriparser - update to 0.9.6-1
uriparser-devel - update to 0.9.6-1
uriparser-debugsource - update to 0.9.6-1
uriparser-debuginfo - update to 0.9.6-1
uriparser-help - update to 0.9.6-1
mingw-uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35
uriparser - addressed in versions 0.9.6-1.fc34, 0.9.6-1.fc35, 0.9.7-1.el8
External References
- https://github.com/uriparser/uriparser/issues/122
- https://github.com/uriparser/uriparser/pull/124
- https://blog.hartwork.org/posts/uriparser-096-with-security-fixes-released/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO6T7WA27H7K3WI2AXUAGPWBGK4HM65D/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YGIJTDNEMU2V4H3JJBQVKBRHU5GBQKG2/
- https://www.debian.org/security/2022/dsa-5063