{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"unimportant\"}"}}}], "affected": [{"vendor": "debian", "product": "sudo", "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2012-3440"}], "descriptions": [{"lang": "en", "value": "A certain Red Hat script for sudo 1.7.2 on Red Hat Enterprise Linux (RHEL) 5 allows local users to overwrite arbitrary files via a symlink attack on the /var/tmp/nsswitch.conf.bak temporary file."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2012-08-08T10:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 5.6, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:N/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "NONE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "sudo", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.7.2p1-14.el5_8.2", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2012-3440.html"}], "descriptions": [{"lang": "en", "value": "A certain Red Hat script for sudo 1.7.2 on Red Hat Enterprise Linux (RHEL) 5 allows local users to overwrite arbitrary files via a symlink attack on the /var/tmp/nsswitch.conf.bak temporary file."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2012-08-07T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 5.6, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:N/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "NONE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "sudo", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.7.2p1-14.el5_8.2", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2012:1149"}, {"url": "https://access.redhat.com/security/cve/CVE-2012-3440"}], "descriptions": [{"lang": "en", "value": "The sudo (superuser do) utility allows system administrators to give\ncertain users the ability to run commands as root.\n\nAn insecure temporary file use flaw was found in the sudo package's\npost-uninstall script. A local attacker could possibly use this flaw to\noverwrite an arbitrary file via a symbolic link attack, or modify the\ncontents of the \"/etc/nsswitch.conf\" file during the upgrade or removal of\nthe sudo package. (CVE-2012-3440)\n\nThis update also fixes the following bugs:\n\n* Previously, sudo escaped non-alphanumeric characters in commands using\n\"sudo -s\" or \"sudo -\" at the wrong place and interfered with the\nauthorization process. Some valid commands were not permitted. Now,\nnon-alphanumeric characters escape immediately before the command is\nexecuted and no longer interfere with the authorization process.\n(BZ#844418)\n\n* Prior to this update, the sudo utility could, under certain\ncircumstances, fail to receive the SIGCHLD signal when it was executed\nfrom a process that blocked the SIGCHLD signal. As a consequence, sudo\ncould become suspended and fail to exit. This update modifies the signal\nprocess mask so that sudo can exit and sends the correct output.\n(BZ#844419)\n\n* The sudo update RHSA-2012:0309 introduced a regression that caused the\nSecurity-Enhanced Linux (SELinux) context of the \"/etc/nsswitch.conf\" file\nto change during the installation or upgrade of the sudo package. This\ncould cause various services confined by SELinux to no longer be permitted\nto access the file. In reported cases, this issue prevented PostgreSQL and\nPostfix from starting. (BZ#842759)\n\n* Updating the sudo package resulted in the \"sudoers\" line in\n\"/etc/nsswitch.conf\" being removed. This update corrects the bug in the\nsudo package's post-uninstall script that caused this issue. (BZ#844420)\n\n* Prior to this update, a race condition bug existed in sudo. When a\nprogram was executed with sudo, the program could possibly exit\nsuccessfully before sudo started waiting for it. In this situation, the\nprogram would be left in a zombie state and sudo would wait for it\nendlessly, expecting it to still be running. (BZ#844978)\n\nAll users of sudo are advised to upgrade to this updated package, which\ncontains backported patches to correct these issues."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2012-08-07T00:00:00Z", "x_subShortName": "redhat_5"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 5.6, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:N/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "NONE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "sudo", "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "sudo-devel", "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2012-3440"}], "descriptions": [{"lang": "en", "value": "Red Hat's versions of the associated software have been determined to NOT be affected by CVE-2012-3440."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2012-08-07T00:00:00Z", "x_subShortName": "redhat_6"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 5.6, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:N/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "NONE"}}], "affected": [{"cpes": ["cpe:2.3:a:todd_miller:sudo:1.7.2:*:*:*:*:*:*:*"], "vendor": "todd_miller", "product": "sudo", "versions": [{"status": "affected", "version": "1.7.2"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*"], "vendor": "redhat", "product": "enterprise_linux", "versions": [{"status": "affected", "version": "5"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://bugzilla.redhat.com/show_bug.cgi?id=844442", "tags": ["exploit"]}, {"url": "http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html"}, {"url": "http://www.securityfocus.com/bid/54868"}], "descriptions": [{"lang": "en", "value": "A certain Red Hat script for sudo 1.7.2 on Red Hat Enterprise Linux (RHEL) 5 allows local users to overwrite arbitrary files via a symlink attack on the /var/tmp/nsswitch.conf.bak temporary file."}, {"lang": "es", "value": "Una secuencia de comandos seguro de Red Hat para sudo v1.7.2 sobre Red Hat Enterprise Linux (RHEL) v5 permite a usuarios locales sobreescribir ficheros arbitrarios mediante un ataque de enlace simbólico en el directorio temporal /var/tmp/nsswitch.conf.bak"}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-59", "description": "CWE-59"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2012-08-08T10:26:19Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2012-3440", "state": "PUBLISHED", "dateUpdated": "2025-04-11T00:51:21Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2012-08-08T10:26:19Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}