UBUNTU-CVE-2026-16554

Source
https://ubuntu.com/security/CVE-2026-16554
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16554.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-16554
Upstream
Published
2026-07-27T09:16:00Z
Modified
2026-07-29T07:53:23Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

cJSON library is vulnerable to an integer overflow in the printstringptr() function in cJSON.c on 32-bit platforms. The escapecharacters counter, a 32-bit sizet, 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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / cjson

Package

Name
cjson
Purl
pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.10-1.1
1.7.10-1.1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.7.10-1.1ubuntu0.1~esm1",
            "binary_name": "libcjson1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16554.json"

Ubuntu:Pro:22.04:LTS / cjson

Package

Name
cjson
Purl
pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.14-1
1.7.15-1
1.7.15-1ubuntu0.1~esm2
1.7.15-1ubuntu0.1
1.7.15-1ubuntu0.1+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.7.15-1ubuntu0.1+esm1",
            "binary_name": "libcjson1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16554.json"

Ubuntu:Pro:24.04:LTS / cjson

Package

Name
cjson
Purl
pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.16-1
1.7.16-2
1.7.17-1
1.7.17-1ubuntu0.1~esm2
1.7.17-1ubuntu0.1~esm3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.7.17-1ubuntu0.1~esm3",
            "binary_name": "libcjson1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16554.json"

Ubuntu:26.04:LTS / cjson

Package

Name
cjson
Purl
pkg:deb/ubuntu/cjson?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.18-3.1
1.7.18-4
1.7.19-1
1.7.19-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.7.19-2",
            "binary_name": "libcjson1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16554.json"