CVE-2022-31033 Authorization header leak in rubygem Mechanize
An attacker can steal Authorization headers when Mechanize follows redirects to different ports, exposing sensitive credentials.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31033?
CVE-2022-31033 is a medium-severity vulnerability in Fedoraproject Fedora, published on 9 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.
Weakness: CWE-200
Which versions are affected by CVE-2022-31033?
2 open source packages ship an affected version, including mechanize. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mechanize RubyGems | All versions | 2.8.5 |
mechanize RubyGems | All versions | 2.8.5 |
Products include Fedoraproject Fedora, Mechanize Project Mechanize.
How do I fix CVE-2022-31033?
Upgrade mechanize to 2.8.5 or later.
Is CVE-2022-31033 being exploited?
There is no known exploitation of CVE-2022-31033 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2022-31033, GHSA-64qm-hrgp-pgr9, UBUNTU-CVE-2022-31033.