Home / mailings [gentoo-announce] [ GLSA 202506-11 ] YAML-LibYAML: Shell injection
Posted on 12 June 2025
Gentoo-announce- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 202506-11
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Severity: Normal
Title: YAML-LibYAML: Shell injection
Date: June 12, 2025
Bugs: #949498
ID: 202506-11
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Synopsis
========
A vulnerability has been discovered in YAML-LibYAML, which can lead to
shell injection.
Background
==========
YAML-LibYAML provides YAML Serialization using XS and libyaml for Perl.
Affected packages
=================
Package Vulnerable Unaffected
--------------------- ------------ ------------
dev-perl/YAML-LibYAML < 0.903.0 >= 0.903.0
Description
===========
YAML-LibYAML uses the legacy '2-arg' open() call which is susceptible to
shell injection via malicious filenames.
Impact
======
Shell injection may be used to execute arbitrary code using a malicious
filename.
Workaround
==========
There is no known workaround at this time.
Resolution
==========
All YAML-LibYAML users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-perl/YAML-LibYAML-0.903.0"
References
==========
[ 1 ] CVE-2025-40908
https://nvd.nist.gov/vuln/detail/CVE-2025-40908
Availability
============
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/202506-11
Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.
License
=======
Copyright 2025 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).
The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.
https://creativecommons.org/licenses/by-sa/2.5
--===============3862088716680716878==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"