# CVE-2022-3952: ManyDesigns Portofino WarFileLauncher.java createTempDir temp file

> Attackers can access or modify temporary files due to insecure permissions in Portofino's WarFileLauncher, requiring an upgrade to fix.

- **Severity:** Low 2.6 (`CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Nov 2022
- **Updated:** 15 Apr 2025
- **Also known as:** GHSA-925r-r6rp-2jj7

## What is CVE-2022-3952?

CVE-2022-3952 is a low-severity vulnerability in ManyDesigns Portofino, published on 11 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A vulnerability has been found in ManyDesigns Portofino 5.3.2 and classified as problematic. Affected by this vulnerability is the function createTempDir of the file WarFileLauncher.java. The manipulation leads to creation of temporary file in directory with insecure permissions. Upgrading to version 5.3.3 is able to address this issue. The name of the patch is 94653cb357806c9cf24d8d294e6afea33f8f0775. It is recommended to upgrade the affected component. The identifier VDB-213457 was assigned to this vulnerability.

Weakness: CWE-668 (Exposure of Resource to Wrong Sphere), CWE-377 (DEPRECATED: Insecure Temporary File)

## Which versions are affected by CVE-2022-3952?

2 open source packages ship an affected version, including com.manydesigns:portofino. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `com.manydesigns:portofino` | Maven | All versions | 5.3.3 |
| `com.manydesigns:portofino` | Maven | All versions | 5.3.3 |

Products: Manydesigns Portofino.

## How do I fix CVE-2022-3952?

Upgrade com.manydesigns:portofino to 5.3.3 or later.

## Is CVE-2022-3952 being exploited?

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

## Other vulnerabilities in ManyDesigns Portofino

- [CVE-2021-29451](https://insights.sbomify.com/CVE-2021-29451/): Missing validation of JWT signature in `ManyDesigns/Portofino` (critical 9.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-3952 and fix it if it is affected.

What it is: CVE-2022-3952 is a low-severity vulnerability in ManyDesigns Portofino, published on 11 Nov 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3952 exists.

Affected packages and fixed versions:
- com.manydesigns:portofino (Maven): affected all versions; fixed in 5.3.3
- com.manydesigns:portofino (Maven): affected all versions; fixed in 5.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-2022-3952/ (Markdown: https://insights.sbomify.com/CVE-2022-3952/index.md)
```

## Sources

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

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