[ GLSA 202506-11 ] YAML-LibYAML: Shell injection

[email protected] Thu, 12 Jun 2025 09:59:15 -0000
Newsgroups gmane.linux.gentoo.announce
Message-ID <174972235576.7.12642083951321668677@3f85d36892cf>
--===============3862088716680716878==
Content-Type: text/plain; charset="utf-8"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
[email protected] 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"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpqTA6ABLMxh/aChGFMQkOaVy+9kFAmhKpPMACgkQFMQkOaVy
+9llFA//Z+VD72P9JyMux8ADBkOhFUJ8IIxBVKjbr17JHe65DgB9gR8RR00wikQv
Kf081/HT+qTytJIoTJDIjC7tT+TiiHmuiGgI9qUG5mMt243r+1wttm6umqKxkvD5
axfrDuilpE4jmug0E72bC4VbNSM7KArc0pyvXsETdut3itYQFFeAquJbRIEXsofi
w95eD2sld6UW01jpTYbeJCpgBHSCPM8iTCNL9vOqYbMWC8mryXpyNU7lAL+Io5yp
B3N0YGJbUi+8fnaLRIGCGVfLgpjDxjNty6097ybnbcIGJZf/qeDW4+f1/ChN1rnf
C7KNeSvVT1997mcgnvdQHlUlw4VZnX5P0wNbGIQ22O6kaiF2mp16+UyuP0WQGWkk
+1g5VkBuIvGa+mP7QEJyivvXg4SXnMs+dkDr09hTPDMu/A8ZnLV8fK8TBs2KvbTw
q7sOk7/zeKIjBeJ/Hrd+ctamm/TAzl4XyjmSH4KT7wEIGZwLyrtyiMgu2Os49i9H
S/tK+zCPLRzCFXoFpFbH7Abq7u+og9eI9gThEUiK2HXNqxt5BkWzD/htZxElLqTD
nKuUyn9NkOJwKJ4u3t8uNs56f8rYSRBvUIZIwaeMrE7yCT2LFXKfOkhHUp9rxefi
aA/Aj6VrKeQscmoMhz0CUd80iJZRwgsYEVSvjYfnk7pFlOE+dv4=
=BtKa
-----END PGP SIGNATURE-----

--===============3862088716680716878==--