CVE catalog

CVE-2026-16554

cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing st

[CVE catalog]

Severity
Medium · CVSS 6.8CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.37% · Oct 25, 2026

cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service. Because project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancjsonsid1.7.19-2vulnerable
Debiancjsonforky1.7.19-2vulnerable
Debiancjsontrixie1.7.18-3.1+deb13u1vulnerable
Debiancjsontrixie-security1.7.18-3.1+deb13u1vulnerable
Debiancjsonbookworm1.7.15-1+deb12u4vulnerable
Debiancjsonbookworm-security1.7.15-1+deb12u4vulnerable
CpecjsonNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancjsonsourcesid(unfixed)not yet assignedNot reported[1143047]
Debiancjsonsourceforky(unfixed)not yet assignedNot reported[1143047]
Debiancjsonsourcetrixie(unfixed)not yet assignedNot reported[1143047]
Debiancjsonsourcebookworm(unfixed)not yet assignedNot reported[1143047]

[Debian bug #1143047]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libcjson1]Affected

    Source package: [cjson]

    Details (4)
    • 1.7.15-1+deb12u4 · amd64 · bookworm

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · arm64 · bookworm

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · amd64 · bookworm-security

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · arm64 · bookworm-security

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

  • [libcjson-dev]Affected

    Source package: [cjson]

    Details (4)
    • 1.7.15-1+deb12u4 · amd64 · bookworm

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · arm64 · bookworm

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · amd64 · bookworm-security

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

    • 1.7.15-1+deb12u4 · arm64 · bookworm-security

      Affected

      nvd · cjson · debian · bookworm; nvd · cjson · debian · 12

[Debian 13 (Trixie)]

  • [libcjson1]Affected

    Source package: [cjson]

    Details (4)
    • 1.7.18-3.1+deb13u1 · amd64 · trixie

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · arm64 · trixie

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · amd64 · trixie-security

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · arm64 · trixie-security

      Affected

      nvd · cjson · debian · 13

  • [libcjson-dev]Affected

    Source package: [cjson]

    Details (4)
    • 1.7.18-3.1+deb13u1 · amd64 · trixie

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · arm64 · trixie

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · amd64 · trixie-security

      Affected

      nvd · cjson · debian · 13

    • 1.7.18-3.1+deb13u1 · arm64 · trixie-security

      Affected

      nvd · cjson · debian · 13

Observed:

References