Refine your search

1 vulnerability found for luci-app-travelmate by openwrt

CVE-2026-58652 (GCVE-0-2026-58652)
Vulnerability from cvelistv5
Published
2026-07-02 12:28
Modified
2026-08-28 15:18
CWE
  • CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Summary
luci-app-travelmate (and the travelmate package) contain a privilege-escalation flaw: a LuCI/rpcd session holding the luci-app-travelmate write ACL is granted config-wide UCI write access to the travelmate configuration. While the LuCI UI restricts the auto-login script picker to /etc/travelmate/*.login, this is only a frontend restriction. The backend travelmate service (running as root) reads the raw UCI 'script' and 'script_args' values and executes the configured path when the captive-portal auto-login branch (f_check() in travelmate-functions.sh) is reached. An attacker with delegated write permissions can set script to /bin/sh and script_args to attacker-controlled arguments, resulting in arbitrary command execution as root. Confirmed in luci-app-travelmate/travelmate 2.4.5-r3; the sink is still present in travelmate 2.4.6-1 and no patched version is known.
Impacted products
Vendor Product Version
openwrt luci-app-travelmate Version: 2.4.5-r3   <
Create a notification for this product.
   openwrt travelmate Version: 2.4.5-r3   <
Version: 2.4.6-1   <
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-58652",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-07-02T13:16:39.810703Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-07-02T13:16:44.529Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "references": [
          {
            "tags": [
              "exploit"
            ],
            "url": "https://github.com/openwrt/luci/security/advisories/GHSA-p35r-3323-6g7g"
          }
        ],
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "affected",
          "product": "luci-app-travelmate",
          "vendor": "openwrt",
          "versions": [
            {
              "status": "affected",
              "version": "2.4.5-r3",
              "versionType": "custom"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "travelmate",
          "vendor": "openwrt",
          "versions": [
            {
              "status": "affected",
              "version": "2.4.5-r3",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "2.4.6-1",
              "versionType": "custom"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "ZwCrazyThursday"
        }
      ],
      "datePublic": "2026-06-17T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "luci-app-travelmate (and the travelmate package) contain a privilege-escalation flaw: a LuCI/rpcd session holding the luci-app-travelmate write ACL is granted config-wide UCI write access to the travelmate configuration. While the LuCI UI restricts the auto-login script picker to /etc/travelmate/*.login, this is only a frontend restriction. The backend travelmate service (running as root) reads the raw UCI \u0027script\u0027 and \u0027script_args\u0027 values and executes the configured path when the captive-portal auto-login branch (f_check() in travelmate-functions.sh) is reached. An attacker with delegated write permissions can set script to /bin/sh and script_args to attacker-controlled arguments, resulting in arbitrary command execution as root. Confirmed in luci-app-travelmate/travelmate 2.4.5-r3; the sink is still present in travelmate 2.4.6-1 and no patched version is known."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "attackComplexity": "HIGH",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 7.7,
            "baseSeverity": "HIGH",
            "privilegesRequired": "LOW",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH"
          },
          "format": "CVSS"
        },
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "format": "CVSS"
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-78",
              "description": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-28T15:18:28.142Z",
        "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "shortName": "VulnCheck"
      },
      "references": [
        {
          "name": "GitHub Security Advisory (GHSA-p35r-3323-6g7g)",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://github.com/openwrt/luci/security/advisories/GHSA-p35r-3323-6g7g"
        },
        {
          "name": "https://github.com/openwrt/luci/commit/f85102548ee8325bfd581a0327b210b5f7670829",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/openwrt/luci/commit/f85102548ee8325bfd581a0327b210b5f7670829"
        },
        {
          "name": "https://github.com/openwrt/luci/commit/491f1df06645c4e0757fed4a9f0622e9ce0d300c",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/openwrt/packages/commit/491f1df06645c4e0757fed4a9f0622e9ce0d300c"
        },
        {
          "name": "https://github.com/openwrt/luci/commit/71d92bcc9edbc8f95858ce82a8ff5d52500005a2",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/openwrt/packages/commit/71d92bcc9edbc8f95858ce82a8ff5d52500005a2"
        },
        {
          "name": "https://github.com/openwrt/luci/commit/0627b412ee3a760cc4bca9fc8a5b73de8f33ac10",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/openwrt/packages/commit/0627b412ee3a760cc4bca9fc8a5b73de8f33ac10"
        },
        {
          "name": "https://github.com/openwrt/luci/commit/d6e457a1a70a9010195edeafdc0b8eb6e3b0f7f1",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/openwrt/packages/commit/d6e457a1a70a9010195edeafdc0b8eb6e3b0f7f1"
        },
        {
          "name": "VulnCheck Advisory: luci-app-travelmate - Arbitrary Command Execution via UCI Script Parameter",
          "tags": [
            "third-party-advisory"
          ],
          "url": "https://www.vulncheck.com/advisories/luci-app-travelmate-arbitrary-command-execution-via-uci-script-parameter"
        }
      ],
      "title": "luci-app-travelmate - Arbitrary Command Execution via UCI Script Parameter",
      "x_generator": {
        "engine": "vulncheck-endgame"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
    "assignerShortName": "VulnCheck",
    "cveId": "CVE-2026-58652",
    "datePublished": "2026-07-02T12:28:34.022Z",
    "dateReserved": "2026-07-01T21:54:37.945Z",
    "dateUpdated": "2026-08-28T15:18:28.142Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}