{"api_version":"1","generated_at":"2026-07-24T03:26:04+00:00","cve":"CVE-2016-2338","urls":{"html":"https://cve.report/CVE-2016-2338","api":"https://cve.report/api/cve/CVE-2016-2338.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-2338","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-2338"},"summary":{"title":"CVE-2016-2338","description":"An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer \"head\" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.","state":"PUBLIC","assigner":"cert@cert.org","published_at":"2022-09-29 03:15:00","updated_at":"2023-03-01 16:35:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://security.netapp.com/advisory/ntap-20221228-0005/","name":"https://security.netapp.com/advisory/ntap-20221228-0005/","refsource":"CONFIRM","tags":[],"title":"CVE-2016-2338 Ruby Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","name":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","refsource":"MISC","tags":[],"title":"Cisco Talos - Talos 2016 0032","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-2338","name":"https://www.cve.org/CVERecord?id=CVE-2016-2338","refsource":"MISC","tags":[],"title":"cve-website","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html","name":"[debian-lts-announce] 20200325 [SECURITY] [DLA 2158-1] ruby2.1 security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2158-1] ruby2.1 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2338","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"2338","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"2338","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"2.2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"2338","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"2.3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cert@cert.org","ID":"CVE-2016-2338","STATE":"PUBLIC"},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer \"head\" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"references":{"reference_data":[{"refsource":"MLIST","name":"[debian-lts-announce] 20200325 [SECURITY] [DLA 2158-1] ruby2.1 security update","url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html"},{"refsource":"MISC","name":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","url":"http://www.talosintelligence.com/reports/TALOS-2016-0032/"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20221228-0005/","url":"https://security.netapp.com/advisory/ntap-20221228-0005/"}]}},"nvd":{"publishedDate":"2022-09-29 03:15:00","lastModifiedDate":"2023-03-01 16:35:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"2338","Ordinal":"88185","Title":"CVE-2016-2338","CVE":"CVE-2016-2338","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"2338","Ordinal":"1","NoteData":"An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer \"head\" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.","Type":"Description","Title":null},{"CveYear":"2016","CveId":"2338","Ordinal":"2","NoteData":"2020-02-14","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"2338","Ordinal":"3","NoteData":"2020-03-25","Type":"Other","Title":"Modified"}]}}}