{"answers":{"affected":"6 open source packages ship an affected version, including matrix-sydent and matrix-synapse. It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-11842 in the wild and no public exploit code.","fix":"Upgrade matrix-sydent to 1.0.3 or later.","what":"CVE-2019-11842 is a high-severity vulnerability in n/a, published on 9 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-11842 and fix it if it is affected.\n\nWhat it is: CVE-2019-11842 is a high-severity vulnerability in n/a, published on 9 May 2019. 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-2019-11842 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- matrix-sydent (PyPI): affected all versions; fixed in 1.0.3\n- matrix-sydent (PyPI): affected all versions; fixed in 1.0.3\n- matrix-sydent (PyPI): affected all versions; fixed in 1.0.3\n- matrix-synapse (PyPI): affected all versions; fixed in 0.99.3.1\n- matrix-synapse (PyPI): affected all versions; fixed in 0.99.3.1\n- matrix-synapse (PyPI): affected all versions; fixed in 0.99.3.1\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-2019-11842/ (Markdown: https://insights.sbomify.com/CVE-2019-11842/index.md)","id":"CVE-2019-11842","markdown":"https://insights.sbomify.com/CVE-2019-11842/index.md","name":"CVE-2019-11842","record":{"aliases":["GHSA-gwf7-vfjf-wf6x","PYSEC-2019-185","PYSEC-2026-2620","UBUNTU-CVE-2019-11842"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix Synapse/Sydent","requires_auth":"none","summary":"Attackers can predict authentication tokens or IDs due to poor random number generation, potentially bypassing security or taking over accounts.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"sydent","vendor":"matrix"},{"product":"synapse","vendor":"matrix"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"description":"An issue was discovered in Matrix Sydent before 1.0.3 and Synapse before 0.99.3.1. Random number generation is mishandled, which makes it easier for attackers to predict a Sydent authentication token or a Synapse random ID.","ecosystems":["PyPI"],"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":"matrix-sydent and matrix-synapse Use Cryptographically Weak PRNG","id":"CVE-2019-11842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"weak_cryptography","year":"2019"},"n_packages":6,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-11843"},"packages":[{"ecosystem":"PyPI","fixed":["1.0.3"],"introduced":["0"],"last_affected":[],"package":"matrix-sydent","purl":null,"source":"GHSA-gwf7-vfjf-wf6x"},{"ecosystem":"PyPI","fixed":["1.0.3"],"introduced":["0"],"last_affected":[],"package":"matrix-sydent","purl":"pkg:pypi/matrix-sydent","source":"GHSA-gwf7-vfjf-wf6x"},{"ecosystem":"PyPI","fixed":["1.0.3"],"introduced":["0"],"last_affected":[],"package":"matrix-sydent","purl":"pkg:pypi/matrix-sydent","source":"PYSEC-2026-2620"},{"ecosystem":"PyPI","fixed":["0.99.3.1"],"introduced":["0"],"last_affected":[],"package":"matrix-synapse","purl":null,"source":"GHSA-gwf7-vfjf-wf6x"},{"ecosystem":"PyPI","fixed":["0.99.3.1"],"introduced":["0"],"last_affected":[],"package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"GHSA-gwf7-vfjf-wf6x"},{"ecosystem":"PyPI","fixed":["0.99.3.1"],"introduced":["0"],"last_affected":[],"package":"matrix-synapse","purl":"pkg:pypi/matrix-synapse","source":"PYSEC-2019-185"}],"prev":{"headline":"Golang/x/crypto message forgery vulnerability","id":"CVE-2019-11841"},"products":["n/a"],"published":"2019-05-09","related":[{"cvss_score":9.3,"headline":"Sydent does not verify email server certificates","id":"CVE-2023-38686","kev_date_added":null,"published":"2023-08-04"},{"cvss_score":7.7,"headline":"SSRF in Sydent due to missing validation of hostnames","id":"CVE-2021-29431","kev_date_added":null,"published":"2021-04-15"},{"cvss_score":7.5,"headline":"Denial of service attack via memory exhaustion","id":"CVE-2021-29430","kev_date_added":null,"published":"2021-04-15"},{"cvss_score":5.9,"headline":"Matrix Sydent mishandles emails","id":"CVE-2019-11340","kev_date_added":null,"published":"2019-04-19"},{"cvss_score":5.3,"headline":"Malicious users could control the content of invitation emails","id":"CVE-2021-29432","kev_date_added":null,"published":"2021-04-15"},{"cvss_score":4.3,"headline":"Denial of service (via resource exhaustion) due to improper input validation","id":"CVE-2021-29433","kev_date_added":null,"published":"2021-04-15"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can predict authentication tokens or IDs due to poor random number generation, potentially bypassing security or taking over accounts.","url":"https://insights.sbomify.com/CVE-2019-11842/"}