# CVE-2022-38638: PYSEC-2022-43190 - Casdoor v1.97.3 was discovered to contain an arbitrary file write vulnerability via the fullFilePath parameter at /api/upload-resource.

Source: https://junglewise.ai/threats/cve-2022-38638-casdoor-arbitrary-file-write-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-09-09  
License: CC BY 4.0 with a link back

CVE-2022-38638 · Severity: low · CVSS 3.1 · Published 2022-09-09

Casdoor v1.97.3 was discovered to contain an arbitrary file write vulnerability via the fullFilePath parameter at /api/upload-resource.

Technologies: [github.com/casdoor/casdoor (Go)](https://junglewise.ai/threats/technologies/github-com-casdoor-casdoor). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-38638 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-38638 being exploited in the wild.

**How severe is CVE-2022-38638?** Low severity, with a CVSS score of 3.1, published 9 September 2022.

**Which products and versions are affected?** github.com/casdoor/casdoor (Go) SEMVER:introduced=0,fixed=1.103.1; casdoor (PyPI) ECOSYSTEM:introduced=0,last_affected=1.97.3.

**Is there a fix for CVE-2022-38638?** Yes. github.com/casdoor/casdoor (Go): upgrade to 1.103.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-38638?** Check whether you run github.com/casdoor/casdoor (Go) or casdoor (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/casdoor/casdoor (Go): upgrade to 1.103.1 or later

  ```sh
  go get github.com/casdoor/casdoor@v1.103.1
  ```


## Affected products

- github.com/casdoor/casdoor (Go) SEMVER:introduced=0,fixed=1.103.1
- casdoor (PyPI) ECOSYSTEM:introduced=0,last_affected=1.97.3

## Identifiers

- CVE-2022-38638
- GHSA-9vm3-r8gq-cr6x
- GO-2022-1006
- PYSEC-2022-43190

## Related threats

- [Casdoor SAML response validation bypass in auth controller](https://junglewise.ai/threats/cve-2026-9098-casdoor-saml-response-validation-bypass-in-auth-controller)
- [Casdoor missing JWT revocation check in token exchange](https://junglewise.ai/threats/cve-2026-9097-casdoor-missing-jwt-revocation-check-in-token-exchange)
- [Casdoor SAML assertion time bound enforcement failure](https://junglewise.ai/threats/cve-2026-9096-casdoor-saml-assertion-time-bound-enforcement-failure)
- [Casdoor cross-organization token exchange privilege escalation](https://junglewise.ai/threats/cve-2026-9094-casdoor-cross-organization-token-exchange-privilege-escalation)
- [Casdoor SAML audience restriction bypass](https://junglewise.ai/threats/cve-2026-9093-casdoor-saml-audience-restriction-bypass)
