High

Deserialization of Untrusted Data in swagger-codegen

  • Disclosed: 19.10.2018
  • Updated: 11.10.2026 11:20

A vulnerability in Swagger-Parser's version <= 1.0.30 and Swagger codegen version <= 2.2.2 yaml parsing functionality results in arbitrary code being executed when a maliciously crafted yaml Open-API specification is parsed. This in particular, affects the 'generate' and 'validate' command in swagger-codegen (<= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) io.swagger:swagger-codegen < 2.2.2 2.2.2
Java / Kotlin (Maven) io.swagger:swagger-parser < 1.0.31 1.0.31

References

CVSS score 8.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-502
Platform
Java / Kotlin (Maven)
Package
io.swagger:swagger-codegen, io.swagger:swagger-parser
Disclosed
19.10.2018
Updated
11.10.2026 11:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-vgvf-9jh3-fg75 - CC BY 4.0

Vulnerability history: io.swagger:swagger-parser

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
10.2018 10.2018
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2

Disclosures per year

  1. 2018: 2
  2. 2019: 0
  3. 2020: 0
  4. 2021: 0
  5. 2022: 0
  6. 2023: 0
  7. 2024: 0
  8. 2025: 0
  9. 2026: 0
  1. High · 8.8 CVE-2017-1000208 < 1.0.31 1.0.31
  2. Deserialization of Untrusted Data in swagger-codegen this entry
    High · 8.8 CVE-2017-1000207 < 1.0.31 1.0.31

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.