Back to CVE catalog
CVE-2016-2338

Heap overflow in Psych::Emitter start_document

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

9.8Critical
Published:
Updated:
EPSS:
4.832%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:ruby-langrubyAffected versions:
2.2.2Show full version range for ruby
2.3.0
Vendor:Debiandebian linuxAffected versions:
8.0
Vendor:redhatruby
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-docs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-docs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-irb
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-irb
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-libs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-libs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-rdoc
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-rdoc
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-ri
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-ri
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-static
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for ruby-static
  • Other versions are affected by default; consult the source for exceptions.

1–10 of 44 · Page 1 of 5

CVSS scores and metrics7
[email protected] · NVD (Primary)Primary9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE-2016-2338 · OSV (source-vector)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
alas · Wazuh CTI (adp)5.6 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
Low
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
suse · Wazuh CTI (adp)8.2 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
None
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
redhat · Wazuh CTI (adp)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd · Wazuh CTI (cna)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories14

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences