Skip to content

Usage of deprecated function (ulimit)

Description

The ulimit function is obsolete and no longer recommended. Use `getrlimit(2)`, `setrlimit`, or `sysconf` instead.

Examples

Insecure Code

c
ulimit(...)

Secure Code

c
getrlimit(...)

Remediation

Replace ulimit with getrlimit, setrlimit, or sysconf.

Rule Details

FieldValue
IDCODE-0604
CategoryInsecureConfig
SeverityLOW
CWECWE-676
ConfidenceHIGH
ImpactLOW
LikelihoodLOW
ExploitabilityCOMPLEX
Tagsdeprecated function, ulimit
OWASPA9:2017-Using Components with Known Vulnerabilities, A06:2021-Vulnerable and Outdated Components