CVE-2023-37265 Incorrect identification of source IP addresses in CasaOS

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary commands as root due to incorrect IP address verification in CasaOS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-37265?

CVE-2023-37265 is a critical authentication bypass vulnerability in IceWhaleTech CasaOS-Gateway, published on 17 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

CasaOS is an open-source Personal Cloud system. Due to a lack of IP address verification an unauthenticated attackers can execute arbitrary commands as `root` on CasaOS instances. The problem was addressed by improving the detection of client IP addresses in `391dd7f`. This patch is part of CasaOS 0.4.4. Users should upgrade to CasaOS 0.4.4. If they can't, they should temporarily restrict access to CasaOS to untrusted users, for instance by not exposing it publicly.

Weakness: CWE-306

Which versions are affected by CVE-2023-37265?

3 open source packages ship an affected version, including github.com/IceWhaleTech/CasaOS-Gateway. It affects 2 products.

PackageAffectedFixed in
github.com/IceWhaleTech/CasaOS-Gateway GoAll versions0.4.4
github.com/IceWhaleTech/CasaOS-Gateway GoAll versions0.4.4
github.com/IceWhaleTech/CasaOS-Gateway GoAll versions0.4.4

Products include Icewhale Casaos, Icewhale Casaos-Gateway.

How do I fix CVE-2023-37265?

Upgrade github.com/IceWhaleTech/CasaOS-Gateway to 0.4.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-37265 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37265 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-vjh7-5r6x-xh6g, GO-2023-1932.

Is CVE-2023-37265 in your software?

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

Check your SBOMs for free