Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/37443?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37443?format=api", "vulnerability_id": "VCID-cce9-3g2x-h3dt", "summary": "SQL injection vulnerability in Active Record\nDue to the way Active Record handles nested query parameters, an attacker can use a specially crafted request to inject some forms of SQL into your application's SQL queries.", "aliases": [ { "alias": "CVE-2012-2661" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/51269?format=api", "purl": "pkg:gem/activerecord@3.0.13", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.0.13" }, { "url": "http://public2.vulnerablecode.io/api/packages/51270?format=api", "purl": "pkg:gem/activerecord@3.1.5", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.1.5" }, { "url": "http://public2.vulnerablecode.io/api/packages/51271?format=api", "purl": "pkg:gem/activerecord@3.2.4", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.2.4" } ], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/51266?format=api", "purl": "pkg:gem/activerecord@3.0.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-1mc1-zb64-yued" }, { "vulnerability": "VCID-8n6u-hbhg-7qdx" }, { "vulnerability": "VCID-cce9-3g2x-h3dt" }, { "vulnerability": "VCID-p6yg-d8wm-4bgz" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.0.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/51267?format=api", "purl": "pkg:gem/activerecord@3.1.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-cce9-3g2x-h3dt" }, { "vulnerability": "VCID-kt5q-24cw-3faa" }, { "vulnerability": "VCID-p6yg-d8wm-4bgz" }, { "vulnerability": "VCID-wt9d-ejgc-ryg7" }, { "vulnerability": "VCID-wu15-9j1q-17ag" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.1.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/51268?format=api", "purl": "pkg:gem/activerecord@3.2.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-7e6a-35vx-6ygj" }, { "vulnerability": "VCID-cce9-3g2x-h3dt" }, { "vulnerability": "VCID-kt5q-24cw-3faa" }, { "vulnerability": "VCID-p6yg-d8wm-4bgz" }, { "vulnerability": "VCID-wt9d-ejgc-ryg7" }, { "vulnerability": "VCID-wu15-9j1q-17ag" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/activerecord@3.2.0" } ], "references": [ { "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2661", "reference_id": "", "reference_type": "", "scores": [], "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2661" }, { "reference_url": "https://github.com/rails/rails/commit/71f7917c553cdc9a0ee49e87af0efb7429759718#diff-2ec9993375ecb711e08452788d625581", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/rails/rails/commit/71f7917c553cdc9a0ee49e87af0efb7429759718#diff-2ec9993375ecb711e08452788d625581" }, { "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/OSVDB-82403.yml", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/OSVDB-82403.yml" } ], "weaknesses": [ { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." }, { "cwe_id": 89, "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "description": "The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." } ], "exploits": [], "severity_range_score": null, "exploitability": null, "weighted_severity": null, "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-cce9-3g2x-h3dt" }