Vulnerabilites related to ingydotnet - 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"
}

Vulnerability from fkie_nvd
Published
2025-06-01 14:15
Modified
2025-07-02 15:43
Severity ?
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
ingydotnet yaml-libyaml *



{
  "configurations": [
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:ingydotnet:yaml-libyaml:*:*:*:*:*:perl:*:*",
              "matchCriteriaId": "6F3A4FBC-0D8D-47B0-A8FB-07C0A1294A32",
              "versionEndExcluding": "0.903.0",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified"
    },
    {
      "lang": "es",
      "value": "YAML-LibYAML anterior a 0.903.0 para Perl usa 2 argumentos abiertos, lo que permite modificar archivos existentes"
    }
  ],
  "id": "CVE-2025-40908",
  "lastModified": "2025-07-02T15:43:02.133",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "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"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 5.2,
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary"
      }
    ]
  },
  "published": "2025-06-01T14:15:21.113",
  "references": [
    {
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "tags": [
        "Exploit",
        "Issue Tracking"
      ],
      "url": "https://github.com/ingydotnet/yaml-libyaml-pm/issues/120"
    },
    {
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "tags": [
        "Issue Tracking",
        "Patch"
      ],
      "url": "https://github.com/ingydotnet/yaml-libyaml-pm/pull/121"
    },
    {
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "tags": [
        "Issue Tracking",
        "Patch"
      ],
      "url": "https://github.com/ingydotnet/yaml-libyaml-pm/pull/122"
    }
  ],
  "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "description": [
        {
          "lang": "en",
          "value": "CWE-552"
        }
      ],
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "type": "Secondary"
    }
  ]
}