{"answers":{"affected":"7 open source packages ship an affected version, including google.golang.org/protobuf/encoding/protojson, google.golang.org/protobuf and google.golang.org/protobuf/internal/encoding/json.","exploited":"There is no known exploitation of CVE-2024-24786 in the wild and no public exploit code.","fix":"Upgrade google.golang.org/protobuf/encoding/protojson to 1.33.0 or later.","what":"CVE-2024-24786 is a high-severity denial of service vulnerability in google.golang.org/protobuf/encoding/protojson, published on 5 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-24786 and fix it if it is affected.\n\nWhat it is: CVE-2024-24786 is a high-severity denial of service vulnerability in google.golang.org/protobuf/encoding/protojson, published on 5 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-24786 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- google.golang.org/protobuf/encoding/protojson (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf/encoding/protojson (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf/internal/encoding/json (Go): affected all versions; fixed in 1.33.0\n- google.golang.org/protobuf/internal/encoding/json (Go): affected all versions; fixed in 1.33.0\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-24786/ (Markdown: https://insights.sbomify.com/CVE-2024-24786/index.md)","id":"CVE-2024-24786","markdown":"https://insights.sbomify.com/CVE-2024-24786/index.md","name":"CVE-2024-24786","record":{"aliases":["ALSA-2024:2550","ALSA-2024:4246","AZL-35551","AZL-35554","AZL-35556","AZL-35558","AZL-35560","AZL-35561","AZL-35563","AZL-35576","AZL-35577","AZL-35578","AZL-35579","AZL-35580","AZL-35581","AZL-35582","AZL-35583","AZL-35584","AZL-35585","AZL-35591","AZL-35592","AZL-35593","AZL-35594","AZL-35597","AZL-35598","AZL-35599","AZL-35600","AZL-35601","AZL-35633","AZL-35634","AZL-35635","AZL-35636","AZL-35637","AZL-35638","AZL-35639","AZL-35640","AZL-35641","AZL-35642","AZL-35643","AZL-35644","AZL-35645","AZL-35651","AZL-35657","AZL-35658","AZL-35659","AZL-35660","AZL-35661","AZL-35662","AZL-35663","AZL-35664","AZL-35665","AZL-35666","AZL-35667","AZL-35668","AZL-35669","AZL-35670","AZL-35671","AZL-35672","AZL-35673","AZL-35674","AZL-35783","AZL-37119","AZL-39975","AZL-39981","CLEANSTART-2024-WE55879","CLEANSTART-2026-EE27817","CLEANSTART-2026-FB35922","CLEANSTART-2026-VW33526","CLSA-2026-1778661840","DEBIAN-CVE-2024-24786","GHSA-8r3f-844c-mc37","GO-2024-2611","MINI-3xjw-26pc-q8ww","MINI-4g6f-wjmq-v62w","MINI-5c89-g44v-83h2","MINI-69r3-3cr9-vg9m","MINI-c2vf-f2vq-pwp2","MINI-g95j-3296-6j2q","MINI-j276-qmjp-pf6g","MINI-rcg9-fqx2-96cf","MINI-rcwm-xwxr-gh9m","MINI-vp2h-6j8v-j54g","MINI-xjhp-7h7w-5727","MINI-xw8f-v5c9-8wm9","OESA-2025-1689","RHSA-2024:1461","RHSA-2024:1874","RHSA-2024:2550","RHSA-2024:3715","RHSA-2024:4246","RHSA-2026:76876","RHSA-2026:77895","RHSA-2026:80632","RHSA-2026:80634","RHSA-2026:80637","RHSA-2026:80643","RHSA-2026:80646","RHSA-2026:80647","RHSA-2026:80649","RHSA-2026:80650","RHSA-2026:80651","RHSA-2026:80652","RHSA-2026:80653","RHSA-2026:80654","RHSA-2026:80656","RHSA-2026:80657","RHSA-2026:80658","RHSA-2026:80659","RHSA-2026:80660","RHSA-2026:80661","RHSA-2026:80666","RHSA-2026:80668","RHSA-2026:80670","RHSA-2026:80671","RHSA-2026:80672","RHSA-2026:80673","RHSA-2026:80676","RHSA-2026:80682","RHSA-2026:80683","RHSA-2026:80686","RHSA-2026:80693","RLSA-2024:2550","RLSA-2024:4246","UBUNTU-CVE-2024-24786","USN-6746-1","USN-6746-2","openSUSE-SU-2024:13781-1","openSUSE-SU-2024:13814-1","openSUSE-SU-2024:13838-1","openSUSE-SU-2024:13839-1","openSUSE-SU-2024:13840-1","openSUSE-SU-2024:13841-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Go protobuf library","requires_auth":"none","summary":"Attackers can cause a denial of service via infinite loop in JSON unmarshaling when using specific options or message types.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[],"description":"The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Go","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:hummingbird:1","Red Hat:openshift:4.12::el8","Red Hat:openshift:4.12::el9","Red Hat:openshift:4.14::el8","Red Hat:openshift:4.14::el9","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"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":"Infinite loop in JSON unmarshaling in google.golang.org/protobuf","id":"CVE-2024-24786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":304,"n_references":5,"next":{"headline":"Arbitrary code execution during build on Darwin in cmd/go","id":"CVE-2024-24787"},"packages":[{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf","purl":null,"source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf","purl":"pkg:golang/google.golang.org/protobuf","source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf","purl":"pkg:golang/google.golang.org/protobuf","source":"GO-2024-2611"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf/encoding/protojson","purl":null,"source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf/encoding/protojson","purl":"pkg:golang/google.golang.org/protobuf/encoding/protojson","source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf/internal/encoding/json","purl":null,"source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"Go","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"google.golang.org/protobuf/internal/encoding/json","purl":"pkg:golang/google.golang.org/protobuf/internal/encoding/json","source":"GHSA-8r3f-844c-mc37"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.10.0-1.module_el8.10.0+3792+03eaed9c"],"introduced":["0"],"last_affected":[],"package":"aardvark-dns","purl":"pkg:rpm/almalinux/aardvark-dns","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.10.0-1.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"aardvark-dns","purl":"pkg:rpm/almalinux/aardvark-dns","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.33.8-1.module_el8.10.0+3862+c5a22a8d"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/almalinux/buildah","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.33.8-1.module_el8.10.0+3862+c5a22a8d"],"introduced":["0"],"last_affected":[],"package":"buildah-tests","purl":"pkg:rpm/almalinux/buildah-tests","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["84.1-1.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"cockpit-podman","purl":"pkg:rpm/almalinux/cockpit-podman","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3:2.1.10-1.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/almalinux/conmon","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3:2.1.10-1.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/almalinux/conmon","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.229.0-2.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"container-selinux","purl":"pkg:rpm/almalinux/container-selinux","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.4.0-2.module_el8.10.0+3792+03eaed9c"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.4.0-2.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1-81.module_el8.10.0+3792+03eaed9c"],"introduced":["0"],"last_affected":[],"package":"containers-common","purl":"pkg:rpm/almalinux/containers-common","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1-81.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"containers-common","purl":"pkg:rpm/almalinux/containers-common","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"crit","purl":"pkg:rpm/almalinux/crit","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"crit","purl":"pkg:rpm/almalinux/crit","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"criu","purl":"pkg:rpm/almalinux/criu","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"criu","purl":"pkg:rpm/almalinux/criu","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"criu-devel","purl":"pkg:rpm/almalinux/criu-devel","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-5.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"criu-libs","purl":"pkg:rpm/almalinux/criu-libs","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.14.3-2.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"crun","purl":"pkg:rpm/almalinux/crun","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.14.3-2.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"crun","purl":"pkg:rpm/almalinux/crun","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.13-1.module_el8.10.0+3792+03eaed9c"],"introduced":["0"],"last_affected":[],"package":"fuse-overlayfs","purl":"pkg:rpm/almalinux/fuse-overlayfs","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.13-1.module_el8.10.0+3859+6ae70a0e"],"introduced":["0"],"last_affected":[],"package":"fuse-overlayfs","purl":"pkg:rpm/almalinux/fuse-overlayfs","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-2.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"libslirp","purl":"pkg:rpm/almalinux/libslirp","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-2.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"libslirp","purl":"pkg:rpm/almalinux/libslirp","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-2.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"libslirp-devel","purl":"pkg:rpm/almalinux/libslirp-devel","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-2.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"libslirp-devel","purl":"pkg:rpm/almalinux/libslirp-devel","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.10.3-1.module_el8.10.0+3845+87b84552"],"introduced":["0"],"last_affected":[],"package":"netavark","purl":"pkg:rpm/almalinux/netavark","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.10.3-1.module_el8.10.0+3858+6ad51f9f"],"introduced":["0"],"last_affected":[],"package":"netavark","purl":"pkg:rpm/almalinux/netavark","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.10-1.module_el8.10.0+3792+03eaed9c"],"introduced":["0"],"last_affected":[],"package":"oci-seccomp-bpf-hook","purl":"pkg:rpm/almalinux/oci-seccomp-bpf-hook","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.10-1.module_el8.10.0+3859+6ae70a0e"],"introduced":["0"],"last_affected":[],"package":"oci-seccomp-bpf-hook","purl":"pkg:rpm/almalinux/oci-seccomp-bpf-hook","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4:4.9.4-4.module_el8.10.0+3862+c5a22a8d"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/almalinux/podman","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4:4.9.4-4.module_el8.10.0+3862+c5a22a8d"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit","purl":"pkg:rpm/almalinux/podman-catatonit","source":"ALSA-2024:4246"},{"ecosystem":"AlmaLinux:8","fixed":["4:4.9.4-4.module_el8.10.0+3862+c5a22a8d"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/almalinux/podman-docker","source":"ALSA-2024:4246"}],"prev":{"headline":"Errors returned from JSON marshaling may break template escaping in html/template","id":"CVE-2024-24785"},"products":["google.golang.org/protobuf/encoding/protojson","google.golang.org/protobuf/internal/encoding/json"],"published":"2024-03-05","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-23","vendors":["google.golang.org/protobuf"]},"summary":"Attackers can cause a denial of service via infinite loop in JSON unmarshaling when using specific options or message types.","url":"https://insights.sbomify.com/CVE-2024-24786/"}