{"answers":{"affected":"6 open source packages ship an affected version, including time and chrono. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-26235 in the wild and no public exploit code.","fix":"Upgrade time to a fixed version for your release line: 0.2.0, 0.2.1, 0.2.2 or 0.2.3.","what":"CVE-2020-26235 is a medium-severity vulnerability in time-rs time, published on 24 Nov 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-26235 and fix it if it is affected.\n\nWhat it is: CVE-2020-26235 is a medium-severity vulnerability in time-rs time, published on 24 Nov 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-26235 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- time (crates.io): affected from 0.0.0-0; fixed in 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.23\n- time (crates.io): affected from 0.1.0; fixed in 0.2.23\n- time (crates.io): affected from 0.1.0; fixed in 0.2.23\n- time (crates.io): affected from 0.2.7; fixed in 0.2.23\n- time (crates.io): affected from 0.2.7; fixed in 0.2.23\n- chrono (crates.io): affected from 0.0.0-0; fixed in 0.4.20\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-2020-26235/ (Markdown: https://insights.sbomify.com/CVE-2020-26235/index.md)","id":"CVE-2020-26235","markdown":"https://insights.sbomify.com/CVE-2020-26235/index.md","name":"CVE-2020-26235","record":{"aliases":["GHSA-wcg3-cvx6-7396","RUSTSEC-2020-0071","RUSTSEC-2020-0159","UBUNTU-CVE-2020-26235","openSUSE-SU-2024:12746-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust time crate","requires_auth":"low_privilege","summary":"A dangling pointer dereference in the Rust time crate causes segmentation faults on Unix systems when environment variables are modified concurrently.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"time","vendor":"time_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"In Rust time crate from version 0.2.7 and before version 0.2.23, unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires the user to set any environment variable in a different thread than the affected functions. The affected functions are time::UtcOffset::local_offset_at, time::UtcOffset::try_local_offset_at, time::UtcOffset::current_local_offset, time::UtcOffset::try_current_local_offset, time::OffsetDateTime::now_local and time::OffsetDateTime::try_now_local. Non-Unix targets are unaffected. This includes Windows and wasm. The issue was introduced in version 0.2.7 and fixed in version 0.2.23.","ecosystems":["crates.io"],"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":"Segmentation fault in Rust time crate","id":"CVE-2020-26235","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"null_dereference","year":"2020"},"n_packages":6,"n_references":3,"next":{"headline":"Verification Code Hijacking in ScratchVerifier","id":"CVE-2020-26236"},"packages":[{"ecosystem":"crates.io","fixed":["0.4.20"],"introduced":["0.0.0-0"],"last_affected":[],"package":"chrono","purl":"pkg:cargo/chrono","source":"RUSTSEC-2020-0159"},{"ecosystem":"crates.io","fixed":["0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.23"],"introduced":["0.0.0-0","0.2.1-0","0.2.2-0","0.2.3-0","0.2.4-0","0.2.5-0","0.2.6-0","0.2.7-0"],"last_affected":[],"package":"time","purl":"pkg:cargo/time","source":"RUSTSEC-2020-0071"},{"ecosystem":"crates.io","fixed":["0.2.23"],"introduced":["0.1.0"],"last_affected":[],"package":"time","purl":null,"source":"GHSA-wcg3-cvx6-7396"},{"ecosystem":"crates.io","fixed":["0.2.23"],"introduced":["0.1.0"],"last_affected":[],"package":"time","purl":"pkg:cargo/time","source":"GHSA-wcg3-cvx6-7396"},{"ecosystem":"crates.io","fixed":["0.2.23"],"introduced":["0.2.7"],"last_affected":[],"package":"time","purl":null,"source":"GHSA-wcg3-cvx6-7396"},{"ecosystem":"crates.io","fixed":["0.2.23"],"introduced":["0.2.7"],"last_affected":[],"package":"time","purl":"pkg:cargo/time","source":"GHSA-wcg3-cvx6-7396"}],"prev":{"headline":"Disabled Hostname Verification in OpenCast","id":"CVE-2020-26234"},"products":["time"],"published":"2020-11-24","related":[{"cvss_score":6.8,"headline":"time affected by a stack exhaustion denial of service attack","id":"CVE-2026-25727","kev_date_added":null,"published":"2026-02-06"}],"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":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"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":["time-rs"]},"summary":"A dangling pointer dereference in the Rust time crate causes segmentation faults on Unix systems when environment variables are modified concurrently.","url":"https://insights.sbomify.com/CVE-2020-26235/"}