{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-40918 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-40918 is a medium-severity vulnerability in EHUELS Authen::SASL::Perl::DIGEST_MD5, published on 16 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40918 and fix it if it is affected.\n\nWhat it is: CVE-2025-40918 is a medium-severity vulnerability in EHUELS Authen::SASL::Perl::DIGEST_MD5, published on 16 Jul 2025. 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-2025-40918 in the wild and no public exploit code.\n\nAffected product: EHUELS Authen::SASL::Perl::DIGEST_MD5. 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-2025-40918/ (Markdown: https://insights.sbomify.com/CVE-2025-40918/index.md)","id":"CVE-2025-40918","markdown":"https://insights.sbomify.com/CVE-2025-40918/index.md","name":"CVE-2025-40918","record":{"aliases":["ALPINE-CVE-2025-40918","AZL-65541","BELL-CVE-2025-40918","DEBIAN-CVE-2025-40918","GHSA-496q-8ph2-c4fj","MGASA-2025-0285","OESA-2026-2422","OESA-2026-2423","OESA-2026-2530","OESA-2026-2531","SUSE-SU-2025:03087-1","SUSE-SU-2025:03088-1","SUSE-SU-2026:21145-1","UBUNTU-CVE-2025-40918","openSUSE-SU-2025:15385-1","openSUSE-SU-2026:20480-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl SASL library","requires_auth":"none","summary":"Insecure cnonce generation in Perl SASL DIGEST-MD5 allows attackers to bypass mutual authentication and chosen plaintext protections.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"description":"Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely.\n\nThe cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage.\n\nAccording to RFC 2831, The cnonce-value is an opaque quoted string value provided by the client and used by both client and server to avoid chosen plaintext attacks, and to provide mutual authentication. The security of the implementation\n depends on a good choice. It is RECOMMENDED that it contain at least 64 bits of entropy.","ecosystems":["SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP7","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 15.6","openSUSE:Leap 16.0","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":"Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely","id":"CVE-2025-40918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"weak_cryptography","year":"2025"},"n_packages":41,"n_references":5,"next":{"headline":"Authen::DigestMD5 versions 0.01 through 0.04 for Perl generate the cnonce insecurely","id":"CVE-2025-40919"},"packages":[{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP7","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP7","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["2.16-5.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2025:03088-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["0.540.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2025:03088-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["2.170.0-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:21145-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["0.550.0-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:21145-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["2.16-5.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:03088-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["0.540.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:03088-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["2.170.0-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/suse/perl-Authen-SASL\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:21145-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["0.550.0-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/suse/perl-Crypt-URandom\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:21145-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.16-150000.1.6.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/opensuse/perl-Authen-SASL\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.540.0-150000.1.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/opensuse/perl-Crypt-URandom\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03087-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["2.170.0-160000.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Authen-SASL","purl":"pkg:rpm/opensuse/perl-Authen-SASL\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20480-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["0.550.0-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"perl-Crypt-URandom","purl":"pkg:rpm/opensuse/perl-Crypt-URandom\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20480-1"}],"prev":{"headline":"Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha text","id":"CVE-2025-40916"},"products":["Authen::SASL::Perl::DIGEST_MD5"],"published":"2025-07-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"2025-11-04","vendors":["EHUELS"]},"summary":"Insecure cnonce generation in Perl SASL DIGEST-MD5 allows attackers to bypass mutual authentication and chosen plaintext protections.","url":"https://insights.sbomify.com/CVE-2025-40918/"}