Remote Code Execution (RCE) via String Literal Injection into math-codegen
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| mauriciopoppe | math-codegen | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mauriciopoppe | Math-codegen |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-p6x5-p4xf-cc4r | Remote Code Execution (RCE) via String Literal Injection into math-codegen |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.393% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:mauriciopoppe:math-codegen:*:*:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mauriciopoppe
Mauriciopoppe math-codegen |
|
| Vendors & Products |
Mauriciopoppe
Mauriciopoppe math-codegen |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | math-codegen generates code from mathematical expressions. Prior to version 0.4.3, string literal content passed to cg.parse() is injected verbatim into a new Function() body without sanitization. This allows an attacker to execute arbitrary system commands when user-controlled input reaches the parser. Any application exposing a math evaluation endpoint where user input flows into cg.parse() is vulnerable to full RCE. This issue has been patched in version 0.4.3. | |
| Title | Remote Code Execution (RCE) via String Literal Injection into math-codegen | |
| Weaknesses | CWE-94 | |
| References |
| |
| Metrics |
cvssV3_1
|