CVE-2022-23554 Authentication bypass in Alpine
Attackers can bypass authentication filters in the Alpine Java library by manipulating request URIs, potentially accessing protected endpoints without valid 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-23554?
CVE-2022-23554 is a medium-severity authentication bypass vulnerability in stevespringett alpine, published on 28 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Alpine is a scaffolding library in Java. Alpine prior to version 1.10.4 allows Authentication Filter bypass. The AuthenticationFilter relies on the request URI to evaluate if the user is accessing the swagger endpoint. By accessing a URL with a path such as /api/foo;%2fapi%2fswagger the contains condition will hold and will return from the authentication filter without aborting the request. Note that the principal object will not be assigned and therefore the issue wont allow user impersonation. This issue has been fixed in version 1.10.4. There are no known workarounds.
Which versions are affected by CVE-2022-23554?
2 open source packages ship an affected version, including us.springett:alpine. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
us.springett:alpine Maven | All versions | 1.10.4 |
us.springett:alpine Maven | All versions | 1.10.4 |
Products include Alpine Project Alpine.
How do I fix CVE-2022-23554?
Upgrade us.springett:alpine to 1.10.4 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2022-23554 being exploited?
There is no known exploitation of CVE-2022-23554 in the wild and no public exploit code.
Other vulnerabilities in stevespringett alpine
Sources
Also known as GHSA-whr2-9x5f-5c79.