CVE Vulnerabilities

CVE-2025-40908

Files or Directories Accessible to External Parties

Published: Jun 01, 2025 | Modified: Jul 02, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.7 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified

Weakness

The product makes files or directories accessible to unauthorized actors, even though they should not be.

Affected Software

NameVendorStart VersionEnd Version
Yaml-libyamlIngydotnet*0.903.0 (excluding)
Red Hat Enterprise Linux 8RedHatperl-YAML-LibYAML-1:0.70-2.el8_10*
Red Hat Enterprise Linux 9RedHatperl-YAML-LibYAML-1:0.82-6.1.el9_6*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatperl-YAML-LibYAML-1:0.82-6.el9_4.1*
Libyaml-libyaml-perlUbuntufocal*
Libyaml-libyaml-perlUbuntujammy*
Libyaml-libyaml-perlUbuntunoble*
Libyaml-libyaml-perlUbuntuoracular*
Libyaml-libyaml-perlUbuntuupstream*

Extended Description

Web servers, FTP servers, and similar servers may store a set of files underneath a “root” directory that is accessible to the server’s users. Applications may store sensitive files underneath this root without also using access control to limit which users may request those files, if any. Alternately, an application might package multiple files or directories into an archive file (e.g., ZIP or tar), but the application might not exclude sensitive files that are underneath those directories. In cloud technologies and containers, this weakness might present itself in the form of misconfigured storage accounts that can be read or written by a public or anonymous user.

Potential Mitigations

References