← Back to CVE Explorer

CVE-2025-57052

Full vulnerability record from the local CVENow database.

Description

cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters.

Severity
CRITICAL
CVSS score
9.8 (v3.1)
Vulnerability status
Modified
Source identifier
Published
2025-09-03 15:15:38.250000
Last modified
2026-11-07 18:10:00.200000
View original CVE JSON
{
  "id": "CVE-2025-57052",
  "sourceIdentifier": "[email protected]",
  "published": "2025-09-03T15:15:38.250",
  "lastModified": "2026-11-07T18:10:00.200",
  "vulnStatus": "Modified",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters."
    },
    {
      "lang": "es",
      "value": "cJSON 1.5.0 hasta 1.7.18 permite acceso fuera de límites a través de la función decode_array_index_from_pointer en cJSON_Utils.c, permitiendo a atacantes remotos eludir la verificación de límites de arrays y acceder a datos restringidos a través de cadenas de puntero JSON malformadas que contienen caracteres alfanuméricos."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "n/a",
          "product": "n/a",
          "versions": [
            {
              "version": "n/a",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 9.8,
          "baseSeverity": "CRITICAL",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-09-03T17:36:03.895588Z",
          "id": "CVE-2025-57052",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-125"
        },
        {
          "lang": "en",
          "value": "CWE-129"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:davegamble:cjson:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "1.5.0",
              "versionEndIncluding": "1.7.18",
              "matchCriteriaId": "3A301F1E-5229-4B71-A6F0-5ACC0F0BEE24"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability",
      "source": "[email protected]",
      "tags": [
        "Exploit"
      ]
    },
    {
      "url": "https://lists.debian.org/debian-lts-announce/2025/09/msg00019.html",
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    }
  ]
}