oapi-codegen 2.0.0 before 2.8.1 Code Injection via Non-String Enum Values
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| oapi-codegen | oapi-codegen | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Oapi-codegen | Oapi-codegen |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.422% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Oapi-codegen
Oapi-codegen oapi-codegen |
|
| Vendors & Products |
Oapi-codegen
Oapi-codegen oapi-codegen |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | oapi-codegen 2.0.0 before 2.8.1 contains a code injection vulnerability that allows attackers to inject Go code by supplying non-literal enum entries in integer, number, or boolean schemas. Attackers controlling an OpenAPI document can craft an enum entry that closes the const block in constants.tmpl and injects a func init(), executing code when the generated package is built and imported. | |
| Title | oapi-codegen 2.0.0 before 2.8.1 Code Injection via Non-String Enum Values | |
| Weaknesses | CWE-94 | |
| References |
|
|
| Metrics |
cvssV3_1
|