{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-42789 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-42789 is a high-severity vulnerability in Erlang OTP, published on 27 May 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-42789 and fix it if it is affected.\n\nWhat it is: CVE-2026-42789 is a high-severity vulnerability in Erlang OTP, published on 27 May 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-42789 in the wild and no public exploit code.\n\nAffected product: Erlang OTP. 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-2026-42789/ (Markdown: https://insights.sbomify.com/CVE-2026-42789/index.md)","id":"CVE-2026-42789","markdown":"https://insights.sbomify.com/CVE-2026-42789/index.md","name":"CVE-2026-42789","record":{"aliases":["AZL-89172","DEBIAN-CVE-2026-42789","EEF-CVE-2026-42789","GHSA-c99q-jmpx-v8qq","UBUNTU-CVE-2026-42789"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Erlang OTP library","requires_auth":"none","summary":"Attackers can forge TLS certificates by exploiting a validation flaw in Erlang OTP's public_key module, bypassing trust checks to impersonate identities.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"erlang\\/otp","vendor":"erlang"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N","version":"4.0"},"cwes":[{"id":"CWE-296","name":"Improper Following of a Certificate's Chain of Trust"},{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"Improper Following of a Certificate's Chain of Trust vulnerability in Erlang OTP public_key (pubkey_cert module) allows a non-CA certificate to be accepted as an intermediate issuer, enabling certificate chain forgery.\n\nIn lib/public_key/src/pubkey_cert.erl, pubkey_cert:validate_extensions/7 contains two flaws that together allow a certificate with basicConstraints cA:false and no keyUsage extension to be used as an intermediate issuer in a chain passed to public_key:pkix_path_validation/3: the cA:false clause recurses into the remaining extensions without rejecting the certificate when it is in issuer position, and the keyUsage check only fires when the extension is present, so a certificate lacking keyUsage entirely bypasses the keyCertSign enforcement.\n\nAny party holding an end-entity certificate with basicConstraints cA:false and no keyUsage extension, issued by any CA in the victim's trust store, can use that certificate's private key to sign forged leaf certificates for arbitrary identities. public_key:pkix_path_validation/3 accepts the resulting chain, and by extension every TLS or mTLS endpoint built on the OTP ssl application that relies on the default verifier is affected, including server identity verification on the client side and client certificate verification on mTLS servers.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to public_key from 0.22 before 1.17.1.7, 1.20.3.6, and 1.21.8. Whether OTP before OTP 17.0, corresponding to public_key before 0.22, is affected is unknown.","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":"Non-CA certificate accepted as intermediate issuer in public_key path validation","id":"CVE-2026-42789","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":0,"n_references":7,"next":{"headline":"nameConstraints DNS bypass via subject CommonName fallback in public_key hostname verification","id":"CVE-2026-42790"},"packages":[],"prev":{"headline":"HTTP/2 frame size limit checked after body is buffered in bandit","id":"CVE-2026-42788"},"products":["OTP"],"published":"2026-05-27","related":[{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-37026","kev_date_added":null,"published":"2022-09-21"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-10253","kev_date_added":null,"published":"2017-03-18"},{"cvss_score":9.1,"headline":"TLS 1.2 and DTLS client accepts unoffered anonymous cipher suite, bypassing server authentication","id":"CVE-2026-55953","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.8,"headline":"Stack buffer overflow in SCTP error cause parsing in inet_drv allows remote VM crash","id":"CVE-2026-49759","kev_date_added":null,"published":"2026-06-10"},{"cvss_score":8.7,"headline":"TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain","id":"CVE-2026-58227","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.7,"headline":"Denial of service via exponential certificate policy tree growth in path validation","id":"CVE-2026-59251","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.7,"headline":"DTLS listener crash via race condition in dtls_packet_demux causes denial of service for all sessions","id":"CVE-2026-55950","kev_date_added":null,"published":"2026-07-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-10-14","vendors":["Erlang"]},"summary":"Attackers can forge TLS certificates by exploiting a validation flaw in Erlang OTP's public_key module, bypassing trust checks to impersonate identities.","url":"https://insights.sbomify.com/CVE-2026-42789/"}