{"api_version":"1","generated_at":"2026-07-23T21:42:19+00:00","cve":"CVE-2022-40299","urls":{"html":"https://cve.report/CVE-2022-40299","api":"https://cve.report/api/cve/CVE-2022-40299.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-40299","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-40299"},"summary":{"title":"CVE-2022-40299","description":"In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-09-09 01:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-330"],"metrics":[],"references":[{"url":"http://michael.orlitzky.com/cves/cve-2022-40299.xhtml","name":"http://michael.orlitzky.com/cves/cve-2022-40299.xhtml","refsource":"MISC","tags":[],"title":"Michael Orlitzky { Singular interface unsafe /tmp usage }","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c","name":"https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c","refsource":"MISC","tags":[],"title":"use mkstemp for sdb · Singular/Singular@5f28fbf · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/Singular/Singular/issues/1137","name":"https://github.com/Singular/Singular/issues/1137","refsource":"MISC","tags":[],"title":"Insecure /tmp usage due to predictable paths · Issue #1137 · Singular/Singular · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40299","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40299","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"40299","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"singular","cpe5":"singular","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-40299","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/Singular/Singular/issues/1137","refsource":"MISC","name":"https://github.com/Singular/Singular/issues/1137"},{"url":"https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c","refsource":"MISC","name":"https://github.com/Singular/Singular/commit/5f28fbf066626fa9c4a8f0e6408c0bb362fb386c"},{"refsource":"MISC","name":"http://michael.orlitzky.com/cves/cve-2022-40299.xhtml","url":"http://michael.orlitzky.com/cves/cve-2022-40299.xhtml"}]}},"nvd":{"publishedDate":"2022-09-09 01:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-330"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:singular:singular:*:*:*:*:*:*:*:*","versionEndExcluding":"4.3.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}