GLSA 202506-11: YAML-LibYAML: Shell injection

Severity:normal
Title:YAML-LibYAML: Shell injection
Date:06/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 Architecture(s)
dev-perl/YAML-LibYAML < 0.903.0 >= 0.903.0 All supported architectures

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

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-202506-11.xml

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 2010 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.

Thank you!