{"api_version":"1","generated_at":"2026-07-23T03:09:35+00:00","cve":"CVE-2016-10151","urls":{"html":"https://cve.report/CVE-2016-10151","api":"https://cve.report/api/cve/CVE-2016-10151.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-10151","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-10151"},"summary":{"title":"CVE-2016-10151","description":"The hesiod_init function in lib/hesiod.c in Hesiod 3.2.1 compares EUID with UID to determine whether to use configurations from environment variables, which allows local users to gain privileges via the (1) HESIOD_CONFIG or (2) HES_DOMAIN environment variable and leveraging certain SUID/SGUID binary.","state":"PUBLISHED","assigner":"mitre","published_at":"2017-03-01 20:59:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"7","severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.9","severity":"","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","baseScore":6.9,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"https://github.com/achernya/hesiod/pull/9","name":"https://github.com/achernya/hesiod/pull/9","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Use secure_getenv() when it's available by nalind · Pull Request #9 · achernya/hesiod · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking"],"title":"1332508 – (CVE-2016-10151) CVE-2016-10151 hesiod: Weak SUID check allowing privilege elevation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2017/01/21/1","name":"http://www.openwall.com/lists/oss-security/2017/01/21/1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"],"title":"oss-security - Re: CVE Request: two flaws in hesiod permitting privilege elevation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/90952","name":"http://www.securityfocus.com/bid/90952","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Hesiod Security Bypass and Privilege Escalation Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://security.gentoo.org/glsa/201805-01","name":"https://security.gentoo.org/glsa/201805-01","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"hesiod: Root privilege escalation  (GLSA 201805-01) — Gentoo Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10151","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10151","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":"2016","cve_id":"10151","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hesiod_project","cpe5":"hesiod","cpe6":"3.2.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2016-10151","qid":"671394","title":"EulerOS Security Update for hesiod (EulerOS-SA-2022-1325)"},{"cve":"CVE-2016-10151","qid":"671697","title":"EulerOS Security Update for hesiod (EulerOS-SA-2022-1729)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T03:14:42.679Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/achernya/hesiod/pull/9"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508"},{"name":"90952","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/90952"},{"name":"[oss-security] 20170120 Re: CVE Request: two flaws in hesiod permitting privilege elevation","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2017/01/21/1"},{"name":"GLSA-201805-01","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"https://security.gentoo.org/glsa/201805-01"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2017-01-20T00:00:00.000Z","descriptions":[{"lang":"en","value":"The hesiod_init function in lib/hesiod.c in Hesiod 3.2.1 compares EUID with UID to determine whether to use configurations from environment variables, which allows local users to gain privileges via the (1) HESIOD_CONFIG or (2) HES_DOMAIN environment variable and leveraging certain SUID/SGUID binary."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-10-21T09:57:02.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/achernya/hesiod/pull/9"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508"},{"name":"90952","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/90952"},{"name":"[oss-security] 20170120 Re: CVE Request: two flaws in hesiod permitting privilege elevation","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2017/01/21/1"},{"name":"GLSA-201805-01","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"https://security.gentoo.org/glsa/201805-01"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2016-10151","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":"The hesiod_init function in lib/hesiod.c in Hesiod 3.2.1 compares EUID with UID to determine whether to use configurations from environment variables, which allows local users to gain privileges via the (1) HESIOD_CONFIG or (2) HES_DOMAIN environment variable and leveraging certain SUID/SGUID binary."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/achernya/hesiod/pull/9","refsource":"CONFIRM","url":"https://github.com/achernya/hesiod/pull/9"},{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508","refsource":"CONFIRM","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1332508"},{"name":"90952","refsource":"BID","url":"http://www.securityfocus.com/bid/90952"},{"name":"[oss-security] 20170120 Re: CVE Request: two flaws in hesiod permitting privilege elevation","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2017/01/21/1"},{"name":"GLSA-201805-01","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201805-01"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2016-10151","datePublished":"2017-03-01T20:00:00.000Z","dateReserved":"2017-01-20T00:00:00.000Z","dateUpdated":"2024-08-06T03:14:42.679Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-03-01 20:59:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","baseScore":6.9,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:hesiod_project:hesiod:3.2.1:*:*:*:*:*:*:*","matchCriteriaId":"F9952D5F-1E74-4263-B36A-EE56349C9FC7"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"10151","Ordinal":"1","Title":"CVE-2016-10151","CVE":"CVE-2016-10151","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"10151","Ordinal":"1","NoteData":"The hesiod_init function in lib/hesiod.c in Hesiod 3.2.1 compares EUID with UID to determine whether to use configurations from environment variables, which allows local users to gain privileges via the (1) HESIOD_CONFIG or (2) HES_DOMAIN environment variable and leveraging certain SUID/SGUID binary.","Type":"Description","Title":"CVE-2016-10151"},{"CveYear":"2016","CveId":"10151","Ordinal":"2","NoteData":"2017-03-01","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"10151","Ordinal":"3","NoteData":"2018-10-21","Type":"Other","Title":"Modified"}]}}}