Arbitrary File Access Vulnerability in rust-webbrowser Package

rust-webbrowser Updated 02 Oct 2025

Summary

13/01/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-45299: An issue in the IpFile argument of rust-lang webbrowser-rs v0.8.2 allows attackers to access arbitrary files via supplying a crafted URL. Affects rust-webbrowser versions < 0.8.7-1. Fixed in 0.8.7-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-webbrowser package is a library that allows developers to open web browsers from Rust applications. It provides a simple interface for launching web browsers and interacting with them. However, a vulnerability has been identified in versions prior to 0.8.7-1, which allows attackers to exploit the IpFile argument, leading to unauthorized access to arbitrary files.

Vulnerability Detail

An issue in the IpFile argument of rust-lang webbrowser-rs v0.8.2 allows attackers to access arbitrary files via supplying a crafted URL. This vulnerability can lead to sensitive information disclosure and potential exploitation of the system where the application is running. The flaw originates from improper validation of input URLs, which can be manipulated by an attacker to point to local files.

How To Fix

Minimum fixed version

0.8.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-webbrowser

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using the IpFile argument in your application until the package is updated. Validate and sanitize all user inputs to prevent the injection of malicious URLs.

Conclusion

The rust-webbrowser package has a critical vulnerability that allows arbitrary file access through crafted URLs. It is essential to update to the patched version 0.8.7-1 to mitigate this risk. Users should also consider using Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for rust-webbrowser →

Share this vulnerability

FAQ

The vulnerability allows attackers to access arbitrary files on the system, which can lead to data breaches and unauthorized access to sensitive information.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Versions of rust-webbrowser prior to 0.8.7-1 are affected by this vulnerability.

Yes, a patched version 0.8.7-1 is available. Updating to this version will resolve the vulnerability.

If you cannot update the package, implement input validation and avoid using the IpFile argument as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for rust-webbrowser.

How To Fix

Minimum fixed version

0.8.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-webbrowser

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback