{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2804 exists.","fix":"Apply the vendor's patch.","what":"CVE-2023-2804 is a medium-severity memory corruption vulnerability in libjpeg-turbo, published on 25 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-2804 and fix it if it is affected.\n\nWhat it is: CVE-2023-2804 is a medium-severity memory corruption vulnerability in libjpeg-turbo, published on 25 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2804 exists.\n\nAffected product: libjpeg-turbo. 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-2023-2804/ (Markdown: https://insights.sbomify.com/CVE-2023-2804/index.md)","id":"CVE-2023-2804","markdown":"https://insights.sbomify.com/CVE-2023-2804/index.md","name":"CVE-2023-2804","record":{"aliases":["ALPINE-CVE-2023-2804","CLEANSTART-2026-EW60545","CVE-2023-31813","GHSA-jv36-3qpq-7g23","openSUSE-SU-2024:13552-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"JPEG image library","requires_auth":"none","summary":"A heap-based buffer overflow in libjpeg-turbo allows attackers to cause application crashes via crafted 12-bit JPEG images.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libjpeg-turbo","vendor":"libjpeg-turbo"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"A heap-based buffer overflow issue was discovered in libjpeg-turbo in h2v2_merged_upsample_internal() function of jdmrgext.c file. The vulnerability can only be exploited with 12-bit data precision for which the range of the sample data type exceeds the valid sample range, hence, an attacker could craft a 12-bit lossless JPEG image that contains out-of-range 12-bit samples. An application attempting to decompress such image using merged upsampling would lead to segmentation fault or buffer overflows, causing an application to crash.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Memory corruption in libjpeg-turbo","id":"CVE-2023-2804","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":1,"n_references":6,"next":{"headline":"SupportCandy \u003c 3.1.7 - Admin+ SQLi","id":"CVE-2023-2805"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.3.2-77.1"],"introduced":["0"],"last_affected":[],"package":"libjpeg-turbo","purl":"pkg:rpm/opensuse/libjpeg-turbo\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13552-1"}],"prev":{"headline":"Ultimate Addons for Contact Form 7 \u003c 3.1.29 - Reflected XSS","id":"CVE-2023-2803"},"products":["libjpeg-turbo"],"published":"2023-05-25","related":[{"cvss_score":8.8,"headline":"Memory corruption in n/a","id":"CVE-2020-17541","kev_date_added":null,"published":"2021-06-01"},{"cvss_score":8.8,"headline":"Integer overflow in n/a","id":"CVE-2018-20330","kev_date_added":null,"published":"2018-12-21"},{"cvss_score":8.1,"headline":"Memory corruption in n/a","id":"CVE-2020-13790","kev_date_added":null,"published":"2020-06-03"},{"cvss_score":6.5,"headline":"Memory corruption in n/a","id":"CVE-2018-19664","kev_date_added":null,"published":"2018-11-29"},{"cvss_score":6.5,"headline":"Null dereference in n/a","id":"CVE-2017-15232","kev_date_added":null,"published":"2017-10-11"},{"cvss_score":5.5,"headline":"Null dereference in libjpeg-turbo","id":"CVE-2020-35538","kev_date_added":null,"published":"2022-08-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-16","vendors":["n/a"]},"summary":"A heap-based buffer overflow in libjpeg-turbo allows attackers to cause application crashes via crafted 12-bit JPEG images.","url":"https://insights.sbomify.com/CVE-2023-2804/"}