# CVE-2023-43803: Path traversal in Arduino Create Agent


- **Severity:** Medium 6.1 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 18 Oct 2023
- **Updated:** 13 Feb 2025
- **Also known as:** GHSA-m5jc-r4gf-c6p8

## What is CVE-2023-43803?

CVE-2023-43803 is a medium-severity vulnerability in arduino-create-agent, published on 18 Oct 2023. 

### Official description

Arduino Create Agent is a package to help manage Arduino development. This vulnerability affects the endpoint `/v2/pkgs/tools/installed` and the way it handles plugin names supplied as user input. A user who has the ability to perform HTTP requests to the localhost interface, or is able to bypass the CORS configuration, can delete arbitrary files or folders belonging to the user that runs the Arduino Create Agent via a crafted HTTP POST request. This issue has been addressed in version `1.3.3`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2023-43803?

2 open source packages ship an affected version, including github.com/arduino/arduino-create-agent. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/arduino/arduino-create-agent` | Go | All versions | 1.3.3 |
| `github.com/arduino/arduino-create-agent` | Go | All versions | 1.3.3 |

Products: Arduino Create Agent.

## How do I fix CVE-2023-43803?

Upgrade github.com/arduino/arduino-create-agent to 1.3.3 or later.

## Is CVE-2023-43803 being exploited?

There is no known exploitation of CVE-2023-43803 in the wild and no public exploit code.

## Other vulnerabilities in arduino-create-agent

- [CVE-2023-43800](https://insights.sbomify.com/CVE-2023-43800/): Insufficient Verification of Data Authenticity in Arduino Create Agent (high 7.3)
- [CVE-2023-43802](https://insights.sbomify.com/CVE-2023-43802/): Path traversal in Arduino Create Agent (high 7.1)
- [CVE-2023-49296](https://insights.sbomify.com/CVE-2023-49296/): Arduino Create Agent vulnerable to Reflected Cross-Site Scripting (medium 6.3)
- [CVE-2023-43801](https://insights.sbomify.com/CVE-2023-43801/): Path traversal in Arduino Create Agent (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-43803 and fix it if it is affected.

What it is: CVE-2023-43803 is a medium-severity vulnerability in arduino-create-agent, published on 18 Oct 2023. 
Exploitation: There is no known exploitation of CVE-2023-43803 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/arduino/arduino-create-agent (Go): affected all versions; fixed in 1.3.3
- github.com/arduino/arduino-create-agent (Go): affected all versions; fixed in 1.3.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-43803/ (Markdown: https://insights.sbomify.com/CVE-2023-43803/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-43803
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-43803
- OSV: https://osv.dev/vulnerability/CVE-2023-43803

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-43803/
Summaries are generated and may contain mistakes; the official description above is the record.
