{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.logging.log4j:log4j-layout-template-json. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34481 in the wild and no public exploit code.","fix":"Upgrade org.apache.logging.log4j:log4j-layout-template-json to 2.25.4 or later.","what":"CVE-2026-34481 is a medium-severity vulnerability in Apache Log4j JSON Template Layout, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34481 and fix it if it is affected.\n\nWhat it is: CVE-2026-34481 is a medium-severity vulnerability in Apache Log4j JSON Template Layout, published on 10 Apr 2026. 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-2026-34481 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.logging.log4j:log4j-layout-template-json (Maven): affected from 2.14.0; fixed in 2.25.4\n- org.apache.logging.log4j:log4j-layout-template-json (Maven): affected from 2.14.0; fixed in 2.25.4\n- org.apache.logging.log4j:log4j-layout-template-json (Maven): affected from 3.0.0-alpha1 up to 3.0.0-beta3; no fix listed\n- org.apache.logging.log4j:log4j-layout-template-json (Maven): affected from 3.0.0-alpha1 up to 3.0.0-beta3; no fix listed\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-2026-34481/ (Markdown: https://insights.sbomify.com/CVE-2026-34481/index.md)","id":"CVE-2026-34481","markdown":"https://insights.sbomify.com/CVE-2026-34481/index.md","name":"CVE-2026-34481","record":{"aliases":["CLEANSTART-2026-CS40307","CLEANSTART-2026-NV45884","CLEANSTART-2026-QA30361","CLEANSTART-2026-RV51042","CLEANSTART-2026-SX30440","CLSA-2026-1784769579","DEBIAN-CVE-2026-34481","ECHO-ca39-a08f-f485","GHSA-w35j-pv5h-q9q9","MINI-28rp-w5rw-j3fj","MINI-2p74-j755-fc4r","MINI-386x-qf27-4268","MINI-3f92-66mg-v4pq","MINI-42mw-mr2x-q8mr","MINI-59rw-jmfv-g7hg","MINI-648w-qvhj-jmqf","MINI-696h-wr4r-gjpw","MINI-7c5r-qf3h-fxpp","MINI-8cff-mhc4-wrh5","MINI-9mgh-f6qm-qfxp","MINI-g8pp-89mj-2738","MINI-h9g5-qh2j-fq8h","MINI-hrxq-qc52-rq8f","MINI-m7rp-v6wr-hhpp","MINI-mjfv-pjcg-5pgr","MINI-pv49-5g8p-jxx5","MINI-v2gr-xggj-xf8h","MINI-v5f8-ph87-37g5","MINI-vpw7-4m27-mhx9","MINI-wr35-4qpp-q237","MINI-xcwf-44p5-h5pj","ROOT-APP-MAVEN-CVE-2026-34481","UBUNTU-CVE-2026-34481"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Java logging library","requires_auth":"none","summary":"Attackers can cause log processing failures by injecting non-finite floating-point values into logs using JsonTemplateLayout, requiring an upgrade to Log4j.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"log4j","vendor":"apache"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"Apache Log4j's  JsonTemplateLayout https://logging.apache.org/log4j/2.x/manual/json-template-layout.html , in versions up to and including 2.25.3, produces invalid JSON output when log events contain non-finite floating-point values (NaN, Infinity, or -Infinity), which are prohibited by RFC 8259. This may cause downstream log processing systems to reject or fail to index affected records.\n\nAn attacker can exploit this issue only if both of the following conditions are met:\n\n  *  The application uses JsonTemplateLayout.\n  *  The application logs a MapMessage, or logs an object directly (e.g., via Logger.info(Object), which wraps it in an ObjectMessage), where the message contains an attacker-controlled floating-point value.\n\nUsers are advised to upgrade to Apache Log4j JSON Template Layout 2.25.4, which corrects this issue.\n\nNote: The fix released in version 2.25.4 did not cover all affected code paths. CVE-2026-49844 was assigned to the remaining issue, which concerns the MapMessage.asJson() serialization in Apache Log4j API and is fixed in versions 2.25.5 and 2.26.1.","ecosystems":["Maven"],"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":"Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout","id":"CVE-2026-34481","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"other","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"Apache Tomcat: Incomplete escaping of JSON access logs","id":"CVE-2026-34483"},"packages":[{"ecosystem":"Maven","fixed":["2.25.4"],"introduced":["2.14.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-layout-template-json","purl":null,"source":"GHSA-w35j-pv5h-q9q9"},{"ecosystem":"Maven","fixed":["2.25.4"],"introduced":["2.14.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-layout-template-json","purl":"pkg:maven/org.apache.logging.log4j/log4j-layout-template-json","source":"GHSA-w35j-pv5h-q9q9"},{"ecosystem":"Maven","fixed":[],"introduced":["3.0.0-alpha1"],"last_affected":["3.0.0-beta3"],"package":"org.apache.logging.log4j:log4j-layout-template-json","purl":null,"source":"GHSA-w35j-pv5h-q9q9"},{"ecosystem":"Maven","fixed":[],"introduced":["3.0.0-alpha1"],"last_affected":["3.0.0-beta3"],"package":"org.apache.logging.log4j:log4j-layout-template-json","purl":"pkg:maven/org.apache.logging.log4j/log4j-layout-template-json","source":"GHSA-w35j-pv5h-q9q9"}],"prev":{"headline":"Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters","id":"CVE-2026-34480"},"products":["Apache Log4j JSON Template Layout"],"published":"2026-04-10","related":[{"cvss_score":10,"headline":"Apache Log4j2 Remote Code Execution","id":"CVE-2021-44228","kev_date_added":"2021-12-10","published":"2021-12-10"},{"cvss_score":9,"headline":"Apache Log4j2 Deserialization of Untrusted Data","id":"CVE-2021-45046","kev_date_added":"2023-05-01","published":"2021-12-14"},{"cvss_score":9.8,"headline":"SQL injection in JDBC Appender in Apache Log4j V1","id":"CVE-2022-23305","kev_date_added":null,"published":"2022-01-18"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Log4j","id":"CVE-2017-5645","kev_date_added":null,"published":"2017-04-17"},{"cvss_score":8.8,"headline":"Deserialization of untrusted data in JMSSink in Apache Log4j 1.x","id":"CVE-2022-23302","kev_date_added":null,"published":"2022-01-18"},{"cvss_score":7.5,"headline":"Apache Log4j 1.x (EOL) allows DoS in Chainsaw and SocketAppender","id":"CVE-2023-26464","kev_date_added":null,"published":"2023-03-10"},{"cvss_score":7.5,"headline":"Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2","id":"CVE-2021-4104","kev_date_added":null,"published":"2021-12-14"}],"sources":[{"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":"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-11","vendors":["Apache Software Foundation"]},"summary":"Attackers can cause log processing failures by injecting non-finite floating-point values into logs using JsonTemplateLayout, requiring an upgrade to Log4j.","url":"https://insights.sbomify.com/CVE-2026-34481/"}