Skip to content

CVE-2016-2338 (High) detected in psych-2.0.5.gem #22

@mend-bolt-for-github

Description

@mend-bolt-for-github

CVE-2016-2338 - High Severity Vulnerability

Vulnerable Library - psych-2.0.5.gem

Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting capabilities. In addition to wrapping libyaml, Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.

Library home page: https://rubygems.org/gems/psych-2.0.5.gem

Dependency Hierarchy:

  • psych-2.0.5.gem (Vulnerable Library)

Found in base branch: rkh-feature-success_notification_template

Vulnerability Details

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.

Publish Date: 2022-09-29

URL: CVE-2016-2338

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://git.ruby-lang.org/ruby.git/commit/?id=db48c307944a9a18877236bdf9e9b778875f38ed

Release Date: 2022-09-29

Fix Resolution: psych - 2.0.17


Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Labels

    security vulnerabilitySecurity vulnerability detected by WhiteSource

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions