Improper Input Validation Affecting rust-doc package, versions <0:1.54.0-2.module+el8.5.0+12254+dc27bae9
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-CENTOS8-RUSTDOC-2135621
- published 18 Aug 2021
- disclosed 29 Mar 2021
Introduced: 29 Mar 2021
CVE-2021-29922 Open this link in a new tabHow to fix?
Upgrade Centos:8 rust-doc to version 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream rust-doc package and not the rust-doc package as distributed by Centos.
See How to fix? for Centos:8 relevant fixed versions and status.
library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses, because of unexpected octal interpretation.
References
- https://access.redhat.com/security/cve/CVE-2021-29922
- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- https://doc.rust-lang.org/beta/std/net/struct.Ipv4Addr.html
- https://github.com/rust-lang/rust/issues/83648
- https://github.com/rust-lang/rust/pull/83652
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-015.md
- https://access.redhat.com/errata/RHSA-2021:4270
- https://security.gentoo.org/glsa/202210-09