9.8critical
Weak json web token (JWT) secrets in CasaOS
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 6.79% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m5q5-8mfw-p2hrGO-2023-1931
Description
CasaOS is an open-source Personal Cloud system. Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as `root` on CasaOS instances. This problem was addressed by improving the validation of JWTs in commit `705bf1f`. 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| IceWhaleTech CasaOS | < 0.4.4 | CVE List |
| icewhale casaos | before 0.4.4 | CVE List, NVD |
| github.com/IceWhaleTech/CasaOS (Go) | before 0.4.4 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
CasaOS is an open-source Personal Cloud system. Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as `root` on CasaOS instances. This problem was addressed by improving the validation of JWTs in commit `705bf1f`. 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.
GitHub Advisory Database
Impact
Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as root on CasaOS instances.
Patches
The problem was addressed by improving the validation of JWTs in 705bf1f. This patch is part of CasaOS 0.4.4.
Workarounds
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.
References
Go Vulnerability Database
CasaOS contains weak JWT secrets in github.com/IceWhaleTech/CasaOS
References
| https://github.com/IceWhaleTech/CasaOS/security/advisories/GHSA-m5q5-8mfw-p2hr | advisory, patch, third-party-advisory, web | |
| https://github.com/IceWhaleTech/CasaOS/commit/705bf1facbffd2ca40b159b0303132b6fdf657ad | fix, patch, web | |
| https://www.sonarsource.com/blog/security-vulnerabilities-in-casaos | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-37266 | advisory | |
| https://github.com/IceWhaleTech/CasaOS | package | |
| https://pkg.go.dev/vuln/GO-2023-1931 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37266 changed 2024-12-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m5q5-8mfw-p2hr changed 2024-12-12 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1931 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2023-37266 changed 2026-06-17 | Public domain |