LibYAML: Arbitrary code execution — GLSA 201405-27

A vulnerability in LibYAML could allow an attacker to execute arbitrary code or cause a Denial of Service condition.

Affected packages

dev-libs/libyaml on all architectures
Affected versions < 0.1.6
Unaffected versions >= 0.1.6

Background

LibYAML is a YAML 1.1 parser and emitter written in C.

Description

The yaml_parser_scan_uri_escapes() function does not properly expand strings passed as input, which can result in a heap-based buffer overflow.

Impact

An attacker could provide a specially-crafted YAML document, which, when parsed by LibYAML, could result in arbitrary code execution or cause the application to crash.

Workaround

There is no known workaround at this time.

Resolution

All LibYAML users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-libs/libyaml-0.1.6"
 

Packages which depend on this library may need to be recompiled. Tools such as revdep-rebuild may assist in identifying these packages.

References

Release date
May 23, 2014

Latest revision
May 23, 2014: 1

Severity
normal

Exploitable
local, remote

Bugzilla entries