{"api_version":"1","generated_at":"2026-07-23T09:27:05+00:00","cve":"CVE-2002-0542","urls":{"html":"https://cve.report/CVE-2002-0542","api":"https://cve.report/api/cve/CVE-2002-0542.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2002-0542","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2002-0542"},"summary":{"title":"CVE-2002-0542","description":"mail in OpenBSD 2.9 and 3.0 processes a tilde (~) escape character in a message even when it is not in interactive mode, which could allow local users to gain root privileges via calls to mail in cron.","state":"PUBLISHED","assigner":"mitre","published_at":"2002-07-03 04:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.2","severity":"","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://www.osvdb.org/5269","name":"http://www.osvdb.org/5269","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"http://marc.info/?l=bugtraq&m=101855467811695&w=2","name":"http://marc.info/?l=bugtraq&m=101855467811695&w=2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"'OpenBSD Local Root Compromise' - MARC","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.iss.net/security_center/static/8818.php","name":"http://www.iss.net/security_center/static/8818.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"ISS X-Force Database: openbsd-mail-root-privileges (8818): OpenBSD /usr/bin/mail in non-interactive mode could allow local root privileges","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://online.securityfocus.com/archive/1/267089","name":"http://online.securityfocus.com/archive/1/267089","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Vendor Advisory"],"title":"SecurityFocus HOME Mailing List: BugTraq","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/4495","name":"http://www.securityfocus.com/bid/4495","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch","Vendor Advisory"],"title":"OpenBSD Default Crontab root Compromise Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.openbsd.org/errata30.html#mail","name":"http://www.openbsd.org/errata30.html#mail","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"OpenBSD 3.0 errata","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2002-0542","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2002-0542","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2002","cve_id":"542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"openbsd","cpe5":"openbsd","cpe6":"2.9","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2002","cve_id":"542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"openbsd","cpe5":"openbsd","cpe6":"3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T02:56:37.079Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.openbsd.org/errata30.html#mail"},{"name":"20020411 OpenBSD Local Root Compromise","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://marc.info/?l=bugtraq&m=101855467811695&w=2"},{"name":"4495","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/4495"},{"name":"openbsd-mail-root-privileges(8818)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"http://www.iss.net/security_center/static/8818.php"},{"name":"20020411 local root compromise in openbsd 3.0 and below","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"],"url":"http://online.securityfocus.com/archive/1/267089"},{"name":"5269","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://www.osvdb.org/5269"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2002-04-11T00:00:00.000Z","descriptions":[{"lang":"en","value":"mail in OpenBSD 2.9 and 3.0 processes a tilde (~) escape character in a message even when it is not in interactive mode, which could allow local users to gain root privileges via calls to mail in cron."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2002-06-15T09:00:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"http://www.openbsd.org/errata30.html#mail"},{"name":"20020411 OpenBSD Local Root Compromise","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://marc.info/?l=bugtraq&m=101855467811695&w=2"},{"name":"4495","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/4495"},{"name":"openbsd-mail-root-privileges(8818)","tags":["vdb-entry","x_refsource_XF"],"url":"http://www.iss.net/security_center/static/8818.php"},{"name":"20020411 local root compromise in openbsd 3.0 and below","tags":["mailing-list","x_refsource_BUGTRAQ"],"url":"http://online.securityfocus.com/archive/1/267089"},{"name":"5269","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://www.osvdb.org/5269"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2002-0542","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":"mail in OpenBSD 2.9 and 3.0 processes a tilde (~) escape character in a message even when it is not in interactive mode, which could allow local users to gain root privileges via calls to mail in cron."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"http://www.openbsd.org/errata30.html#mail","refsource":"CONFIRM","url":"http://www.openbsd.org/errata30.html#mail"},{"name":"20020411 OpenBSD Local Root Compromise","refsource":"BUGTRAQ","url":"http://marc.info/?l=bugtraq&m=101855467811695&w=2"},{"name":"4495","refsource":"BID","url":"http://www.securityfocus.com/bid/4495"},{"name":"openbsd-mail-root-privileges(8818)","refsource":"XF","url":"http://www.iss.net/security_center/static/8818.php"},{"name":"20020411 local root compromise in openbsd 3.0 and below","refsource":"BUGTRAQ","url":"http://online.securityfocus.com/archive/1/267089"},{"name":"5269","refsource":"OSVDB","url":"http://www.osvdb.org/5269"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2002-0542","datePublished":"2003-04-02T05:00:00.000Z","dateReserved":"2002-06-07T00:00:00.000Z","dateUpdated":"2024-08-08T02:56:37.079Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2002-07-03 04:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:openbsd:openbsd:2.9:*:*:*:*:*:*:*","matchCriteriaId":"AA6AEAF0-FA61-4A3F-A083-1218C2027781"},{"vulnerable":true,"criteria":"cpe:2.3:o:openbsd:openbsd:3.0:*:*:*:*:*:*:*","matchCriteriaId":"60DA30A1-3360-46BC-85B7-008D535F95BE"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2002","CveId":"542","Ordinal":"1","Title":"CVE-2002-0542","CVE":"CVE-2002-0542","Year":"2002"},"notes":[{"CveYear":"2002","CveId":"542","Ordinal":"1","NoteData":"mail in OpenBSD 2.9 and 3.0 processes a tilde (~) escape character in a message even when it is not in interactive mode, which could allow local users to gain root privileges via calls to mail in cron.","Type":"Description","Title":"CVE-2002-0542"},{"CveYear":"2002","CveId":"542","Ordinal":"2","NoteData":"2003-04-02","Type":"Other","Title":"Published"},{"CveYear":"2002","CveId":"542","Ordinal":"3","NoteData":"2002-06-15","Type":"Other","Title":"Modified"}]}}}