Vulnerabilites related to TOBYINK - Mite
CVE-2025-30672 (GCVE-0-2025-30672)
Vulnerability from cvelistv5
Published
2025-04-01 01:51
Modified
2025-04-01 18:28
CWE
  • CWE-427 - Uncontrolled Search Path Element
Summary
Mite for Perl before 0.013000 generates code with the current working directory ('.') added to the @INC path similar to CVE-2016-1238. If an attacker can place a malicious file in current working directory, it may be loaded instead of the intended file, potentially leading to arbitrary code execution. This affects the Mite distribution itself, and other distributions that contain code generated by Mite.
Impacted products
Vendor Product Version
TOBYINK Mite Version: 0   < 0.013000
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 6.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2025-30672",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-04-01T18:27:16.211406Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-04-01T18:28:05.280Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://cpan.org/modules",
          "defaultStatus": "unaffected",
          "packageName": "Mite",
          "product": "Mite",
          "repo": "https://github.com/tobyink/p5-mite",
          "vendor": "TOBYINK",
          "versions": [
            {
              "lessThan": "0.013000",
              "status": "affected",
              "version": "0",
              "versionType": "custom"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "Mite for Perl before 0.013000 generates code with the current working directory (\u0027.\u0027) added to the @INC path similar to CVE-2016-1238.\u003cbr\u003e\u003cbr\u003eIf an attacker can place a malicious file in current working directory, it may be \nloaded instead of the intended file, potentially leading to arbitrary \ncode execution.\u003cbr\u003e\u003cbr\u003eThis affects the Mite distribution itself, and other distributions that contain code generated by Mite.\u003cbr\u003e\u003cbr\u003e"
            }
          ],
          "value": "Mite for Perl before 0.013000 generates code with the current working directory (\u0027.\u0027) added to the @INC path similar to CVE-2016-1238.\n\nIf an attacker can place a malicious file in current working directory, it may be \nloaded instead of the intended file, potentially leading to arbitrary \ncode execution.\n\nThis affects the Mite distribution itself, and other distributions that contain code generated by Mite."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-38",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-38 Leveraging/Manipulating Configuration File Search Paths"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-427",
              "description": "CWE-427 Uncontrolled Search Path Element",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-04-01T01:51:08.494Z",
        "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "shortName": "CPANSec"
      },
      "references": [
        {
          "tags": [
            "release-notes"
          ],
          "url": "https://metacpan.org/release/TOBYINK/Mite-0.013000/changes"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://wiki.gentoo.org/wiki/Project:Perl/Dot-In-INC-Removal"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://perldoc.perl.org/perlrun#PERL_USE_UNSAFE_INC"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://blogs.perl.org/users/todd_rinaldo/2016/11/what-happened-to-dot-in-inc.html"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "Version 0.013000 of Mite was released to address the issue. Users should update to the latest version, and regenerate the Mite files for any projects using the distribution.\u003cbr\u003e\u003cbr\u003e"
            }
          ],
          "value": "Version 0.013000 of Mite was released to address the issue. Users should update to the latest version, and regenerate the Mite files for any projects using the distribution."
        }
      ],
      "source": {
        "discovery": "UNKNOWN"
      },
      "title": "Mite for Perl generates code with an untrusted search path vulnerability",
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
    "assignerShortName": "CPANSec",
    "cveId": "CVE-2025-30672",
    "datePublished": "2025-04-01T01:51:08.494Z",
    "dateReserved": "2025-03-24T22:42:06.810Z",
    "dateUpdated": "2025-04-01T18:28:05.280Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}