CVE-2023-23619: Improper Control of Generation of Code ('Code Injection') in @asyncapi/modelina
Modelina is a library for generating data models based on inputs such as AsyncAPI, OpenAPI, or JSON Schema documents. Versions prior to 1.0.0 are vulnerable to Code injection. This issue affects anyone who is using the default presets and/or does not handle the functionality themself. This issue has been partially mitigated in version 1.0.0, with the maintainer's GitHub Security Advisory (GHSA) noting "It is impossible to fully guard against this, because users have access to the original raw information. However, as of version 1, if you only access the constrained models, you will not encounter this issue. Further similar situations are NOT seen as a security issue, but intended behavior." The suggested workaround from the maintainers is "Fully custom presets that change the entire rendering process which can then escape the user input."
Affected Software
Event History
Frequently Asked Questions
What is CVE-2023-23619?
CVE-2023-23619 is a code injection vulnerability in Modelina.
What is Modelina?
Modelina is a library for generating data models based on inputs such as AsyncAPI, OpenAPI, or JSON Schema documents.
How does CVE-2023-23619 affect Modelina?
CVE-2023-23619 affects Modelina by allowing code injection, potentially leading to unauthorized access or control of the system.
Who is affected by CVE-2023-23619?
Anyone using Modelina versions prior to 1.0.0 and relying on the default presets or not handling the functionality themselves.
How severe is CVE-2023-23619?
CVE-2023-23619 has a severity rating of critical with a score of 8.8 out of 10.
How can I fix CVE-2023-23619?
To fix CVE-2023-23619, upgrade to Modelina version 1.0.0 or newer.
Is there any additional information about CVE-2023-23619?
You can find additional information about CVE-2023-23619 in the official GitHub advisory: [GitHub Advisory](https://github.com/asyncapi/modelina/security/advisories/GHSA-4jg2-84c2-pj95).
What is the Common Weakness Enumeration (CWE) for CVE-2023-23619?
The Common Weakness Enumeration (CWE) for CVE-2023-23619 is CWE-94: Code Injection.