#1149958 cjson: CVE-2026-87933

Package:
src:cjson
Source:
src:cjson
Submitter:
Salvatore Bonaccorso
Date:
2026-11-03 13:51:04 UTC
Severity:
normal
Tags:
#1149958#5
Date:
2026-10-04 19:04:50 UTC
From:
To:
Hi,

The following vulnerability was published for cjson.

CVE-2026-87933[0]:
| A vulnerability was found in DaveGamble cJSON up to 1.7.19. The
| affected element is the function cJSONUtils_MergePatch of the file
| cJSON_Utils.c. The manipulation results in use after free. The
| attack may be launched remotely. The exploit has been made public
| and could be used. The pull request to fix this issue awaits
| acceptance.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-87933
https://www.cve.org/CVERecord?id=CVE-2026-87933
[1] https://github.com/DaveGamble/cJSON/issues/1060
[2] https://github.com/DaveGamble/cJSON/pull/1065
[3] https://github.com/DaveGamble/cJSON/commit/6d9f2443ab071f86e5d9b43025a40929ec41c46c

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1149958#12
Date:
2026-11-03 13:49:56 UTC
From:
To:
Hi,

The fix from the security tracker,

6d9f2443ab07 "Fix: heap-use-after-free in merge_patch when patch is
subtree" (DaveGamble/cJSON, 2026-09-16)

is on master only; no release tag contains it yet. Its non-test part
applies cleanly to unstable 1.7.19-2 and trixie 1.7.18-3.1+deb13u1
(sources from
https://www.google.com/url?q=http://sources.debian.org&source=gmail&ust=1793800196723000&sa=E,
Debian patches included).

Mechanical patch-applies check only; not built or tested.

Regards