CVE-2016-5431 PHP JOSE Library by Gree Inc. Uses a Broken or Risky Cryptographic Algorithm
Attackers can bypass JWS signature verification in the PHP JOSE library by exploiting key confusion, allowing them to forge valid tokens.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-5431?
CVE-2016-5431 is a high-severity vulnerability in jose-php, published on 7 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.
Weakness: CWE-327
Which versions are affected by CVE-2016-5431?
2 open source packages ship an affected version, including gree/jose. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gree/jose Packagist | All versions | 2.2.1 |
gree/jose Packagist | All versions | 2.2.1 |
Products include Php Jose Project Php Jose.
How do I fix CVE-2016-5431?
Upgrade gree/jose to 2.2.1 or later.
Is CVE-2016-5431 being exploited?
There is no known exploitation of CVE-2016-5431 in the wild and no public exploit code.
Sources
Also known as GHSA-xm5f-hc9r-76f3.