Bug 1078083 (CVE-2014-2525) - CVE-2014-2525 libyaml: heap-based buffer overflow when parsing URLs
Summary: CVE-2014-2525 libyaml: heap-based buffer overflow when parsing URLs
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-2525
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1079283 1079299 1079306 1079307 1079308 1079404 1081281 1081382 1081383 1081856 1083710 1083711 1159403 1159404 1160976 1161460 1165358
Blocks: 1078094
TreeView+ depends on / blocked
 
Reported: 2014-03-19 07:00 UTC by Murray McAllister
Modified: 2023-05-12 03:03 UTC (History)
51 users (show)

Fixed In Version: libyaml 0.1.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 02:32:07 UTC
Embargoed:


Attachments (Terms of Use)
patch from upstream (2.90 KB, patch)
2014-03-19 07:09 UTC, Murray McAllister
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0353 0 normal SHIPPED_LIVE Important: libyaml security update 2014-04-02 23:50:54 UTC
Red Hat Product Errata RHSA-2014:0354 0 normal SHIPPED_LIVE Important: libyaml security update 2014-04-02 23:50:48 UTC
Red Hat Product Errata RHSA-2014:0355 0 normal SHIPPED_LIVE Important: ruby193-libyaml security update 2014-04-02 23:50:41 UTC
Red Hat Product Errata RHSA-2014:0364 0 normal SHIPPED_LIVE Important: ruby193-libyaml security update 2014-04-04 00:18:42 UTC
Red Hat Product Errata RHSA-2014:0415 0 normal SHIPPED_LIVE Important: libyaml security update 2014-04-17 16:01:57 UTC

Description Murray McAllister 2014-03-19 07:00:22 UTC
A heap-based buffer overflow flaw was found in the way libyaml parsed URLs. A remote attacker could provide a specially-crafted YAML document that, when parsed by an application using libyaml, would cause the application to crash or, potentially, execute arbitrary code with the privileges of the user running the application.

Acknowledgements:

Red Hat would like to thank oCERT for reporting this issue. oCERT acknowledges Ivan Fratric of the Google Security Team as the original reporter.

Comment 2 Murray McAllister 2014-03-19 07:09:31 UTC
Created attachment 876237 [details]
patch from upstream

Comment 4 Tomas Hoger 2014-03-20 09:55:16 UTC
libyaml is shipped as part of Red Hat Software Collections 1 via ruby193-libyaml package.  This package is used by ruby193-ruby.  Impact for this use case is limited, as ruby YAML module is unsafe for use on untrusted yaml input:

http://ruby-doc.org/stdlib-1.9.3/libdoc/yaml/rdoc/YAML.html#module-YAML-label-Security

Alternative SafeYAML modules which provide safe ways to load yaml input files in ruby is not provided as part of Red Hat Software Collections 1.

https://github.com/dtao/safe_yaml

Comment 18 Murray McAllister 2014-03-27 00:33:16 UTC
This issue is public now:

http://www.ocert.org/advisories/ocert-2014-003.html

Comment 19 Murray McAllister 2014-03-27 00:36:11 UTC
Created libyaml tracking bugs for this issue:

Affects: fedora-all [bug 1081281]

Comment 20 Murray McAllister 2014-03-27 07:01:08 UTC
Debian released http://www.debian.org/security/2014/dsa-2885 to fix this issue in their libyaml-libyaml-perl package. perl-YAML-LibYAML for Fedora and EPEL look to embed libyaml too, and it seems to get built (http://kojipkgs.fedoraproject.org//packages/perl-YAML-LibYAML/0.41/3.fc20/data/logs/x86_64/build.log), but I have not checked if it actually uses the embedded copy or not. I am going to file tracking bugs regardless.

Comment 21 Murray McAllister 2014-03-27 07:09:35 UTC
Created perl-YAML-LibYAML tracking bugs for this issue:

Affects: fedora-all [bug 1081382]
Affects: epel-6 [bug 1081383]

Comment 22 John Eckersberg 2014-03-27 14:39:42 UTC
Can you please create a tracking bug for epel-all as well?

Comment 23 Murray McAllister 2014-03-28 05:45:36 UTC
Created libyaml tracking bugs for this issue:

Affects: epel-all [bug 1081856]

Comment 24 Murray McAllister 2014-03-28 05:46:03 UTC
(In reply to John Eckersberg from comment #22)
> Can you please create a tracking bug for epel-all as well?

Done. Sorry about that!

Comment 27 errata-xmlrpc 2014-04-02 19:51:28 UTC
This issue has been addressed in following products:

  Red Hat Software Collections for RHEL-6

Via RHSA-2014:0355 https://rhn.redhat.com/errata/RHSA-2014-0355.html

Comment 28 errata-xmlrpc 2014-04-02 19:52:25 UTC
This issue has been addressed in following products:

  OpenStack 4 for RHEL 6

Via RHSA-2014:0354 https://rhn.redhat.com/errata/RHSA-2014-0354.html

Comment 29 errata-xmlrpc 2014-04-02 19:53:32 UTC
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2014:0353 https://rhn.redhat.com/errata/RHSA-2014-0353.html

Comment 30 errata-xmlrpc 2014-04-03 20:23:44 UTC
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2014:0364 https://rhn.redhat.com/errata/RHSA-2014-0364.html

Comment 31 Fedora Update System 2014-04-05 04:52:02 UTC
libyaml-0.1.6-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 32 Fedora Update System 2014-04-05 04:56:58 UTC
libyaml-0.1.6-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 33 Fedora Update System 2014-04-07 03:23:58 UTC
perl-YAML-LibYAML-0.41-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 34 Fedora Update System 2014-04-07 03:25:24 UTC
perl-YAML-LibYAML-0.41-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 35 Fedora Update System 2014-04-11 20:49:10 UTC
perl-YAML-LibYAML-0.38-4.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 36 Fedora Update System 2014-04-15 23:29:03 UTC
libyaml-0.1.6-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 37 Fedora Update System 2014-04-15 23:31:18 UTC
libyaml-0.1.2-7.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 38 errata-xmlrpc 2014-04-17 12:04:23 UTC
This issue has been addressed in following products:

  Red Hat Common for RHEL 6

Via RHSA-2014:0415 https://rhn.redhat.com/errata/RHSA-2014-0415.html


Note You need to log in before you can comment on or make changes to this bug.