Skip to main content
Public proof of conceptFix available

CVE-2024-31755

A public proof of concept exists; no exploitation attested.

  • Published2024-04-26
  • WeaknessCWE-476

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c.

Timeline

dates in UTC
  1. 2024-04-2603:15CVE publishedNVD

Versions per branch

NVD · CISA-ADP
Cjson project cjson
BranchAffectedFixed in
1.7= 1.7.17no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apparmorAzure Linux:3all versions · fixed in 3.1.7-1
  • apparmorAzure Linux:2all versions · fixed in 3.0.4-4
  • cjsonUbuntu:Pro:24.04:LTSall versions · fixed in 1.7.17-1ubuntu0.1~esm2
  • cjsonUbuntu:Pro:22.04:LTSall versions · fixed in 1.7.15-1ubuntu0.1~esm2
  • cjsonRed Hat:satellite:6.17::el9all versions · fixed in 0:1.7.18-1.el9satand 2 other packages
  • cjsonRed Hat:satellite:6.16::el9all versions · fixed in 0:1.7.18-1.el9satand 2 other packages
  • cjsonRed Hat:satellite:6.16::el8all versions · fixed in 0:1.7.18-1.el8satand 2 other packages
  • cjsonRed Hat:satellite:6.15::el8all versions · fixed in 0:1.7.18-1.el8satand 2 other packages

16 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-31755 Red Hat Product Security16 products fixed

    cjson: segmentation violation trigger through the second parameter of function cJSON_SetValuestring at cJSON.c

  • RHSA-2025:9838 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.15.5.3 Async Update

  • RHSA-2025:9203 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: Satellite 6.16.5.2 Async Update

  • RHSA-2025:9022 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.17.1 Async Update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2025:9838 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.15/html/updating_red_hat_satellite/index
  2. Vendor fix Red Hat Product Security RHSA-2025:9203 · 16 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.16/html/updating_red_hat_satellite/index
  3. Vendor fix Red Hat Product Security RHSA-2025:9022 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.17/html/updating_red_hat_satellite/index
  4. Workaround from the vendor Red Hat Product Security RHSA-2025:9838 · 27 productsCurrently, there's no available mitigation that matches Red Hat's mitigation criteria other than updating the affected packages.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Published
2024-04-26
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-5g69-hr8r-x577

Frequently asked questions

What is CVE-2024-31755?

cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c.

Is CVE-2024-31755 actively exploited?

A proof-of-concept exploit exists for CVE-2024-31755, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-31755?

CVE-2024-31755 has a CVSS v3 base score of 7.6 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H.

Running cjson? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record