Vulnerabilites related to TINITA - YAML::LibYAML
CVE-2025-40908 (GCVE-0-2025-40908)
Vulnerability from cvelistv5
Published
2025-06-01 13:41
Modified
2025-06-02 03:22
Severity ?
CWE
  • CWE-552 - Files or Directories Accessible to External Parties
Summary
YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified
Impacted products
Vendor Product Version
TINITA YAML::LibYAML Version: 0   < 0.903.0
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 9.1,
              "baseSeverity": "CRITICAL",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2025-40908",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "yes"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-06-02T03:22:02.219115Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-06-02T03:22:25.333Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://cpan.org/modules",
          "defaultStatus": "unaffected",
          "packageName": "YAML-LibYAML",
          "product": "YAML::LibYAML",
          "programFiles": [
            "lib/YAML/XS.pm"
          ],
          "repo": "https://github.com/ingydotnet/yaml-libyaml-pm",
          "vendor": "TINITA",
          "versions": [
            {
              "lessThan": "0.903.0",
              "status": "affected",
              "version": "0",
              "versionType": "custom"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "@shlomif (Shlomi Fish)"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified\u003cbr\u003e"
            }
          ],
          "value": "YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified"
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-23",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-23 File Content Injection"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-552",
              "description": "CWE-552 Files or Directories Accessible to External Parties",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-01T13:41:48.168Z",
        "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "shortName": "CPANSec"
      },
      "references": [
        {
          "tags": [
            "issue-tracking"
          ],
          "url": "https://github.com/ingydotnet/yaml-libyaml-pm/issues/120"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/ingydotnet/yaml-libyaml-pm/pull/121"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/ingydotnet/yaml-libyaml-pm/pull/122"
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified",
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
    "assignerShortName": "CPANSec",
    "cveId": "CVE-2025-40908",
    "datePublished": "2025-06-01T13:41:48.168Z",
    "dateReserved": "2025-04-16T09:05:34.360Z",
    "dateUpdated": "2025-06-02T03:22:25.333Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}