{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.2, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "openssh", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "openssh-askpass", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "openssh-clients", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "openssh-ldap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "openssh-server", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "pam_ssh_agent_auth", "versions": [{"status": "affected", "version": "0", "lessThan": "0:0.9.3-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2012-5536.html"}], "descriptions": [{"lang": "en", "value": "A certain Red Hat build of the pam_ssh_agent_auth module on Red Hat Enterprise Linux (RHEL) 6 and Fedora Rawhide calls the glibc error function instead of the error function in the OpenSSH codebase, which allows local users to obtain sensitive information from process memory or possibly gain privileges via crafted use of an application that relies on this module, as demonstrated by su and sudo."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2013-02-22T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.2, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "openssh", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "openssh-askpass", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "openssh-clients", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "openssh-ldap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "openssh-server", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.3p1-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "pam_ssh_agent_auth", "versions": [{"status": "affected", "version": "0", "lessThan": "0:0.9.3-84.1.el6", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2013:0519"}, {"url": "https://access.redhat.com/security/cve/CVE-2012-5536"}], "descriptions": [{"lang": "en", "value": "OpenSSH is OpenBSD's Secure Shell (SSH) protocol implementation. These\npackages include the core files necessary for the OpenSSH client and\nserver.\n\nDue to the way the pam_ssh_agent_auth PAM module was built in Red Hat\nEnterprise Linux 6, the glibc's error() function was called rather than the\nintended error() function in pam_ssh_agent_auth to report errors. As these\ntwo functions expect different arguments, it was possible for an attacker\nto cause an application using pam_ssh_agent_auth to crash, disclose\nportions of its memory or, potentially, execute arbitrary code.\n(CVE-2012-5536)\n\nNote that the pam_ssh_agent_auth module is not used in Red Hat Enterprise\nLinux 6 by default.\n\nThis update also fixes the following bugs:\n\n* All possible options for the new RequiredAuthentications directive were\nnot documented in the sshd_config man page. This update improves the man\npage to document all the possible options. (BZ#821641)\n\n* When stopping one instance of the SSH daemon (sshd), the sshd init script\n(/etc/rc.d/init.d/sshd) stopped all sshd processes regardless of the PID of\nthe processes. This update improves the init script so that it only kills\nprocesses with the relevant PID. As a result, the init script now works\nmore reliably in a multi-instance environment. (BZ#826720)\n\n* Due to a regression, the ssh-copy-id command returned an exit status code\nof zero even if there was an error in copying the key to a remote host.\nWith this update, a patch has been applied and ssh-copy-id now returns a\nnon-zero exit code if there is an error in copying the SSH certificate to a\nremote host. (BZ#836650)\n\n* When SELinux was disabled on the system, no on-disk policy was installed,\na user account was used for a connection, and no \"~/.ssh\" configuration was\npresent in that user's home directory, the SSH client terminated\nunexpectedly with a segmentation fault when attempting to connect to\nanother system. A patch has been provided to address this issue and the\ncrashes no longer occur in the described scenario. (BZ#836655)\n\n* The \"HOWTO\" document /usr/share/doc/openssh-ldap-5.3p1/HOWTO.ldap-keys\nincorrectly documented the use of the AuthorizedKeysCommand directive.\nThis update corrects the document. (BZ#857760)\n\nThis update also adds the following enhancements:\n\n* When attempting to enable SSH for use with a Common Access Card (CAC),\nthe ssh-agent utility read all the certificates in the card even though\nonly the ID certificate was needed. Consequently, if a user entered their\nPIN incorrectly, then the CAC was locked, as a match for the PIN was\nattempted against all three certificates. With this update, ssh-add does\nnot try the same PIN for every certificate if the PIN fails for the first\none. As a result, the CAC will not be disabled if a user enters their PIN\nincorrectly. (BZ#782912)\n\n* This update adds a \"netcat mode\" to SSH. The \"ssh -W host:port ...\"\ncommand connects standard input and output (stdio) on a client to a single\nport on a server. As a result, SSH can be used to route connections via\nintermediate servers. (BZ#860809)\n\n* Due to a bug, arguments for the RequiredAuthentications2 directive were\nnot stored in a Match block. Consequently, parsing of the config file was\nnot in accordance with the man sshd_config documentation. This update fixes\nthe bug and users can now use the required authentication feature to\nspecify a list of authentication methods as expected according to the man\npage. (BZ#869903)\n\nAll users of openssh are advised to upgrade to these updated packages,\nwhich fix these issues and add these enhancements. After installing this\nupdate, the OpenSSH server daemon (sshd) will be restarted automatically."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2013-02-21T00:00:00Z", "x_subShortName": "redhat_6"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 6.2, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}], "affected": [{"vendor": "amazon", "product": "openssh", "versions": [{"status": "affected", "version": "0", "lessThan": "5.3p1-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}, {"vendor": "amazon", "product": "openssh-clients", "versions": [{"status": "affected", "version": "0", "lessThan": "5.3p1-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}, {"vendor": "amazon", "product": "openssh-debuginfo", "versions": [{"status": "affected", "version": "0", "lessThan": "5.3p1-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}, {"vendor": "amazon", "product": "openssh-ldap", "versions": [{"status": "affected", "version": "0", "lessThan": "5.3p1-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}, {"vendor": "amazon", "product": "openssh-server", "versions": [{"status": "affected", "version": "0", "lessThan": "5.3p1-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}, {"vendor": "amazon", "product": "pam_ssh_agent_auth", "versions": [{"status": "affected", "version": "0", "lessThan": "0.9.3-84.20.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-5536"}], "descriptions": [{"lang": "en", "value": "Due to the way the pam_ssh_agent_auth PAM module was built in Red Hat Enterprise Linux 6, the glibc's error() function was called rather than the intended error() function in pam_ssh_agent_auth to report errors. As these two functions expect different arguments, it was possible for an attacker to cause an application using pam_ssh_agent_auth to crash, disclose portions of its memory or, potentially, execute arbitrary code."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000000", "shortName": "alas", "dateUpdated": "2013-03-02T16:51:00Z", "x_subShortName": "alas_1"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.2, "accessVector": "LOCAL", "vectorString": "AV:L/AC:H/Au:N/C:C/I:C/A:C", "authentication": "NONE", "integrityImpact": "COMPLETE", "accessComplexity": "HIGH", "availabilityImpact": "COMPLETE", "confidentialityImpact": "COMPLETE"}}], "affected": [{"cpes": ["cpe:2.3:o:fedora_project:fedora_release_rawhide:-:*:*:*:*:*:*:*"], "vendor": "fedora_project", "product": "fedora_release_rawhide", "defaultStatus": "unknown"}, {"cpes": ["cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*"], "vendor": "redhat", "product": "enterprise_linux", "versions": [{"status": "affected", "version": "6.0"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://pkgs.fedoraproject.org/cgit/openssh.git/commit/?id=4f4687ce8045418f678c323bb22c837f35d7b9fa", "tags": ["exploit", "patch"]}, {"url": "http://rhn.redhat.com/errata/RHSA-2013-0519.html"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=834618"}], "descriptions": [{"lang": "en", "value": "A certain Red Hat build of the pam_ssh_agent_auth module on Red Hat Enterprise Linux (RHEL) 6 and Fedora Rawhide calls the glibc error function instead of the error function in the OpenSSH codebase, which allows local users to obtain sensitive information from process memory or possibly gain privileges via crafted use of an application that relies on this module, as demonstrated by su and sudo."}, {"lang": "es", "value": "Un determinado build de Red Hat del módulo pam_ssh_agent_auth en Red Hat Enterprise Linux (RHEL) 6 y Fedora Rawhide llama a la funcion de error en glibc en lugar de la función de error en el OpenSSH codebase, lo que permite a usuarios locales obtener información sensible desde la memoria de proceso o posiblemente ganar privilegios mediante la manipulación de una aplicación que confia en este módulo, como se demostró por su y sudo."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-20", "description": "CWE-20"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2013-02-22T00:55:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2012-5536", "state": "PUBLISHED", "dateUpdated": "2025-04-11T00:51:21Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2013-02-22T00:55:00Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}