CVE-2022-25878 Prototype Pollution

High 8.2 Published Updated

Attackers can pollute Object.prototype via untrusted input or .proto files, potentially leading to code execution or privilege escalation.

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-25878?

CVE-2022-25878 is a high-severity vulnerability in protobufjs, published on 27 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package protobufjs before 6.11.3 are vulnerable to Prototype Pollution which can allow an attacker to add/modify properties of the Object.prototype. This vulnerability can occur in multiple ways: 1. by providing untrusted user input to util.setProperty or to ReflectionObject.setParsedOption functions 2. by parsing/loading .proto files

Weakness: CWE-1321

Which versions are affected by CVE-2022-25878?

4 open source packages ship an affected version, including protobufjs. It affects 1 product.

PackageAffectedFixed in
protobufjs npmFrom 6.10.06.10.3
protobufjs npmFrom 6.10.06.10.3
protobufjs npmFrom 6.11.06.11.3
protobufjs npmFrom 6.11.06.11.3

Products include Protobufjs Project Protobufjs.

How do I fix CVE-2022-25878?

Upgrade protobufjs to a fixed version for your release line: 6.10.3 or 6.11.3.

Is CVE-2022-25878 being exploited?

There is no known exploitation of CVE-2022-25878 in the wild and no public exploit code.

Sources

Also known as GHSA-g954-5hwp-pp24, ROOT-APP-NPM-CVE-2022-25878.

Is CVE-2022-25878 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free