{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-39684 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-39684 is a medium-severity vulnerability in Tencent RapidJSON, published on 9 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-39684 and fix it if it is affected.\n\nWhat it is: CVE-2024-39684 is a medium-severity vulnerability in Tencent RapidJSON, published on 9 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-39684 in the wild and no public exploit code.\n\nAffected product: Tencent RapidJSON. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-39684/ (Markdown: https://insights.sbomify.com/CVE-2024-39684/index.md)","id":"CVE-2024-39684","markdown":"https://insights.sbomify.com/CVE-2024-39684/index.md","name":"CVE-2024-39684","record":{"aliases":["AZL-43255","AZL-43297","AZL-43315","AZL-43618","AZL-45423","BELL-CVE-2024-39684","DEBIAN-CVE-2024-39684","ECHO-2368-b917-e3d0","UBUNTU-CVE-2024-39684"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"RapidJSON library","requires_auth":"none","summary":"An integer overflow in RapidJSON's number parsing allows attackers to escalate privileges by tricking users into opening a crafted JSON file.","user_interaction":"required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Tencent RapidJSON is vulnerable to privilege escalation due to an integer overflow in the `GenericReader::ParseNumber()` function of `include/rapidjson/reader.h` when parsing JSON text from a stream. An attacker needs to send the victim a crafted file which needs to be opened; this triggers the integer overflow vulnerability (when the file is parsed), leading to elevation of privilege.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Integer overflow in RapidJSON","id":"CVE-2024-39684","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py resample function","id":"CVE-2024-39685"},"packages":[],"prev":{"headline":"ZITADEL Vulnerable to Session Information Leakage","id":"CVE-2024-39683"},"products":["RapidJSON"],"published":"2024-07-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-05","vendors":["Tencent"]},"summary":"An integer overflow in RapidJSON's number parsing allows attackers to escalate privileges by tricking users into opening a crafted JSON file.","url":"https://insights.sbomify.com/CVE-2024-39684/"}