# Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator

Advisory record · `GHSA-23x4-m842-fmwf`

- **Identifiers:** `GHSA-23x4-m842-fmwf` · `CVE-2021-21428`
- **State:** Confirmed
- **Severity:** CVSS 9.3 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-269](https://cwe.mitre.org/data/definitions/269.html) · [CWE-377](https://cwe.mitre.org/data/definitions/377.html) · [CWE-378](https://cwe.mitre.org/data/definitions/378.html) · [CWE-379](https://cwe.mitre.org/data/definitions/379.html) · [CWE-668](https://cwe.mitre.org/data/definitions/668.html)
- **Tags:** [Privilege escalation](https://agentprime.io/advisories/tag/privilege-escalation.md) · [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [CWE-377](https://agentprime.io/advisories/tag/cwe-377.md) · [CWE-378](https://agentprime.io/advisories/tag/cwe-378.md) · [CWE-379](https://agentprime.io/advisories/tag/cwe-379.md)
- **Published:** 11 May 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 11 May 2021, 00:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.3: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.openapitools:openapi-generator-online` (Maven): affected `<5.1.0`; fixed in `5.1.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The openapi-generator-online package (Maven org.openapitools:openapi-generator-online) is vulnerable in versions before 5.1.0. On Unix-like systems, a local user on the same machine can race the creation of a temporary directory used during code generation, and then append to generated files, which can lead to local privilege escalation. Upgrade to version 5.1.0 or later.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.3 Critical, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0035, the 28th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:20 UTC: First seen by agentprime
- 31 Oct 2026, 14:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-23x4-m842-fmwf)

## Sources

- [GitHub Advisory Database: GHSA-23x4-m842-fmwf](https://github.com/advisories/GHSA-23x4-m842-fmwf)
- [OSV: GHSA-23x4-m842-fmwf](https://osv.dev/vulnerability/GHSA-23x4-m842-fmwf)
- <https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf>
- <https://github.com/swagger-api/swagger-codegen/security/advisories/GHSA-pc22-3g76-gm6j>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21428>
- <https://github.com/OpenAPITools/openapi-generator/pull/8788>
- <https://github.com/OpenAPITools/openapi-generator>
- <https://github.com/OpenAPITools/openapi-generator/blob/c6530519975341d7784a252132b2f0854f488901/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/service/Generator.java#L184-L187>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-23x4-m842-fmwf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-23x4-m842-fmwf/>. Everything for agents: <https://agentprime.io/llms.txt>.
