CVE-2017-16615 · mitre
CVE-2017-16615
An exploitable vulnerability exists in the YAML parsing functionality in the parse_yaml_query method in parser.py in MLAlchemy before 0.2.2. When processing YAML-Based queries for data, a YAML parser can execute arbitrary Python commands resulting in command execution because load is used where safe_load should have been used. An attacker can insert Python into loaded YAML to trigger this vulnerability.
Published 2017-11-08, last changed 2026-06-17.
How to fix
Upgrade to a fixed version: mlalchemy 0.2.2 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in thanethomson/MLAlchemy by bc795757fe. Functions changed by the fix: parse_yaml_query. Regression tests: tests/test_yaml_security.py. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2017-11-08 | Published |
| 2017-11-08 | Package advisory PYSEC-2017-19 |
| 2018-07-13 | Package advisory GHSA-xpm8-98mx-h4c5 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.45% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-xpm8-98mx-h4c5 | mlalchemy (PyPI) | 0.2.2 |
| PYSEC-2017-19 | mlalchemy (PyPI) | 0.2.2 |
Also known as: GHSA-xpm8-98mx-h4c5, PYSEC-2017-19
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-16615, or call /api/v1/vulnerabilities/CVE-2017-16615. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.