The product calls umask() with an incorrect argument that is specified as if it is an argument to chmod().
View on MITREUse umask() with the correct argument.
If you suspect misuse of umask(), you can use grep to spot call instances of umask().
No detection method information available for this CWE.
No examples or observed CVEs available for this CWE.
No relationship information available for this CWE.
CWE-560: Use of umask() with chmod-style Argument is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product calls umask() with an incorrect argument that is specified as if it is an argument to chmod().
If exploited, CWE-560 (Use of umask() with chmod-style Argument) it can compromise Confidentiality, Integrity and Access Control, leading to outcomes such as Read Files or Directories, Modify Files or Directories and Bypass Protection Mechanism.
Recommended mitigations for CWE-560 include: Use umask() with the correct argument. If you suspect misuse of umask(), you can use grep to spot call instances of umask().
CWE-560 commonly affects C. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.
A CWE (Common Weakness Enumeration) like CWE-560 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.