CVE-2014-2525: Buffer Overflow
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.
Other sources
Heap-based buffer overflow in the yamlparserscanuriescapes function in LibYAML before 0.1.6 allows context-dependent attackers to execute arbitrary code via a long sequence of percent-encoded characters in a URI in a YAML file.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libyamlto a version that resolves this vulnerability.Fixed in 0.1.6
Event History
Frequently Asked Questions
What is the severity of CVE-2014-2525?
CVE-2014-2525 has a high severity rating due to its potential to allow arbitrary code execution via a vulnerability in the parsing of URIs.
How do I fix CVE-2014-2525?
To fix CVE-2014-2525, update LibYAML to version 0.1.6 or later, which contains the necessary security patches.
What versions of LibYAML are affected by CVE-2014-2525?
CVE-2014-2525 affects LibYAML versions prior to 0.1.6, including all versions between 0.0.1 and 0.1.5.
Can CVE-2014-2525 be exploited remotely?
Yes, CVE-2014-2525 can be exploited by attackers via crafted YAML files containing specially encoded URIs.
What is the impact of CVE-2014-2525 on applications using LibYAML?
Applications using affected versions of LibYAML are vulnerable to remote code execution, posing a significant security risk.