CVE-2025-40908
Rocky Linux vulnerability analysis and mitigation

Overview

YAML-LibYAML prior to version 0.903.0 for Perl contains a vulnerability in its LoadFile functionality that was discovered on January 29, 2025. The vulnerability affects the YAML::XS Perl module and has been assigned CVE-2025-40908. The issue has been given a CVSS v3.1 base score of 9.1 (CRITICAL) (Wiz Report).

Technical details

The vulnerability stems from the use of a 2-argument open function in the LoadFile functionality of YAML-LibYAML. When processing untrusted filenames, especially those containing special characters like '>', the function can allow existing files to be modified or truncated unintentionally. The vulnerability has been assigned a CVSS vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD, Wiz Report).

Impact

When exploited, this vulnerability can lead to unintended file modification or truncation of existing files on the system. If an attacker can control the filename parameter passed to the LoadFile function, they could potentially modify or destroy important files on the system (Wiz Report).

Exploitability

The vulnerability requires an attacker to be able to control the filename parameter passed to the LoadFile function. A proof of concept has been demonstrated where using a filename like '>file.yaml' can trigger the vulnerability and cause file truncation (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in YAML-LibYAML version 0.903.0 by implementing a 3-argument form of the open function. Users are strongly recommended to upgrade to this version or later. Additionally, it is recommended to validate and sanitize untrusted filenames before processing them (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18299HIGH7.8
  • Rocky Linux logoRocky Linux
  • gstreamer1-plugins-good
NoYesAug 20, 2026
CVE-2026-18298HIGH7.8
  • Rocky Linux logoRocky Linux
  • gstreamer1.src
NoYesAug 20, 2026
CVE-2026-18296HIGH7.8
  • Rocky Linux logoRocky Linux
  • gstreamer1-devel-docs
NoYesAug 20, 2026
CVE-2026-18295HIGH7.8
  • Rocky Linux logoRocky Linux
  • mingw64-gstreamer1
NoYesAug 20, 2026
CVE-2026-70907MEDIUM5.3
  • Amazon Corretto JDK logoAmazon Corretto JDK
  • java-1.7.0-openjdk-devel
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management